diff options
Diffstat (limited to 'Lib/codeop.py')
| -rw-r--r-- | Lib/codeop.py | 10 | 
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/codeop.py b/Lib/codeop.py index daa7eb8..5616d92 100644 --- a/Lib/codeop.py +++ b/Lib/codeop.py @@ -95,15 +95,7 @@ def _maybe_compile(compiler, source, filename, symbol):      if code:          return code -    try: -        e1 = err1.__dict__ -    except AttributeError: -        e1 = err1 -    try: -        e2 = err2.__dict__ -    except AttributeError: -        e2 = err2 -    if not code1 and e1 == e2: +    if not code1 and repr(err1) == repr(err2):          raise SyntaxError, err1  def _compile(source, filename, symbol):  | 
