]> granicus.if.org Git - python/commitdiff
Remove more '<>' usage.
authorBrett Cannon <bcannon@gmail.com>
Fri, 25 Aug 2006 02:57:28 +0000 (02:57 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 25 Aug 2006 02:57:28 +0000 (02:57 +0000)
Modules/cgen.py

index f07d9843bd866a510ef7a48fc54006673d4ba5c8..f28f85e163179ee896e4abc257c0d88ca2d610fc 100644 (file)
@@ -148,7 +148,7 @@ def checkarg(type, arg):
     #       N*argN
     #       N*retval
     #
-    if rest[:1] <> '[' or rest[-1:] <> ']':
+    if rest[:1] != '[' or rest[-1:] != ']':
         raise arg_error, ('subscript expected', rest)
     sub = rest[1:-1]
     #