diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/irix5/panelparser.py | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Lib/irix5/panelparser.py')
-rwxr-xr-x | Lib/irix5/panelparser.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/irix5/panelparser.py b/Lib/irix5/panelparser.py index 9c9ee02..1b069fa 100755 --- a/Lib/irix5/panelparser.py +++ b/Lib/irix5/panelparser.py @@ -20,16 +20,16 @@ def tokenize_string(s): c = s[:1] if c in whitespace: s = s[1:] - elif c = ';': + elif c == ';': s = '' - elif c = '"': + elif c == '"': n = len(s) i = 1 while i < n: c = s[i] i = i+1 - if c = '"': break - if c = '\\': i = i+1 + if c == '"': break + if c == '\\': i = i+1 tokens.append(s[:i]) s = s[i:] elif c in operators: @@ -78,9 +78,9 @@ def parse_expr(tokens): while 1: if not tokens: raise syntax_error, 'missing ")"' - if tokens[0] = ')': + if tokens[0] == ')': return expr, tokens[1:] - elif tokens[0] = '(': + elif tokens[0] == '(': subexpr, tokens = parse_expr(tokens) expr.append(subexpr) else: |