Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
F
Fred Drake committed
8152d32375c40bba9ccbe43b780ebe96d9617781
Parent: c140131