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.
diff --git a/Lib/lib-old/zmod.py b/Lib/lib-old/zmod.py
index 4f03626..7259bf8 100644
--- a/Lib/lib-old/zmod.py
+++ b/Lib/lib-old/zmod.py
@@ -82,13 +82,13 @@
print inv
def rj(s, width):
- if type(s) <> type(''): s = `s`
+ if type(s) is not type(''): s = `s`
n = len(s)
if n >= width: return s
return ' '*(width - n) + s
def lj(s, width):
- if type(s) <> type(''): s = `s`
+ if type(s) is not type(''): s = `s`
n = len(s)
if n >= width: return s
return s + ' '*(width - n)