summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/cgen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cgen.py b/Modules/cgen.py
index f07d984..f28f85e 100644
--- a/Modules/cgen.py
+++ b/Modules/cgen.py
@@ -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]
#