changeset 27537:ffb1ab1e4bba

demandimport: update obsolete comment
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 23 Dec 2015 16:22:20 -0800
parents f7d890bc5e01
children 50ad3f25fb4c
files mercurial/demandimport.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/demandimport.py	Wed Dec 23 16:22:20 2015 -0800
+++ b/mercurial/demandimport.py	Wed Dec 23 16:22:20 2015 -0800
@@ -184,11 +184,9 @@
                 symbol._addref(globalname)
 
         if level >= 0:
-            # Mercurial's enforced import style does not use
-            # "from a import b,c,d" or "from .a import b,c,d" syntax. In
-            # addition, this appears to be giving errors with some modules
-            # for unknown reasons. Since we shouldn't be using this syntax
-            # much, work around the problems.
+            # The "from a import b,c,d" or "from .a import b,c,d"
+            # syntax gives errors with some modules for unknown
+            # reasons. Work around the problem.
             if name:
                 return _hgextimport(_origimport, name, globals, locals,
                                     fromlist, level)