Fixed an issue in the module parser causing some imports not to be recognised. 5_3_x

Sun, 10 Feb 2013 14:34:14 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 10 Feb 2013 14:34:14 +0100
branch
5_3_x
changeset 2399
aeb4423cf6aa
parent 2398
cdb2135811da
child 2413
9665ab434ab1

Fixed an issue in the module parser causing some imports not to be recognised.
(grafted from 89475661e400b408d119e3cc6554360d86634e6d)

Utilities/ModuleParser.py file | annotate | diff | comparison | revisions
--- a/Utilities/ModuleParser.py	Sun Feb 10 11:57:37 2013 +0100
+++ b/Utilities/ModuleParser.py	Sun Feb 10 14:34:14 2013 +0100
@@ -164,12 +164,12 @@
     )
 
 |   (?P<Import>
-        ^ (?: import | from [ \t]+ \. [ \t]+ import ) [ \t]+
+        ^ [ \t]* (?: import | from [ \t]+ \. [ \t]+ import ) [ \t]+
         (?P<ImportList> (?: [^#;\\\n]+ (?: \\\n )* )* )
     )
 
 |   (?P<ImportFrom>
-        ^ from [ \t]+
+        ^ [ \t]* from [ \t]+
         (?P<ImportFromPath>
             \.* \w+
             (?:

eric ide

mercurial