Edgewall Software

Changeset 364

Show
Ignore:
Timestamp:
05/03/08 00:13:17 (14 months ago)
Author:
jruigrok
Message:

Reinstate changeset r362, but this time properly wrap the exception list in
braces.

Submitted by: cboos

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/babel/util.py

    r363 r364  
    1717from datetime import timedelta, tzinfo 
    1818import os 
    19 import parser 
    2019import re 
    2120try: 
     
    7675        if not m: 
    7776            try: 
     77                import parser 
    7878                parser.suite(line1) 
    79             except SyntaxError: 
     79            except (ImportError, SyntaxError): 
    8080                # Either it's a real syntax error, in which case the source is 
    8181                # not valid python source, or line2 is a continuation of line1,