changeset 72:6f384c989a29

modernize comment; this morning is SOOO out of date
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 09 Jun 2011 18:05:50 -0700
parents 2261cf505daf
children 65c95094dbb3
files pyloader/factory.py
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/pyloader/factory.py	Thu Jun 09 18:03:16 2011 -0700
+++ b/pyloader/factory.py	Thu Jun 09 18:05:50 2011 -0700
@@ -139,18 +139,14 @@
                         if ',' in _wrapper_options or '=' in _wrapper_options:
                             # ,= : tokens to ensure these are wrapper options
                             # as these shouldn't be found in a real path (dotted path or file path)
-
                             _wrapper_args, _wrapper_kwargs = factory.str2args(_wrapper_options)
 
-                    # TODO: will be correct for
-                    # [foo:bar:%(here)s/objects.py:MyClass]
-                    # but not for
-                    # [foo:bar:fleem]
-                    # in the latter case, just use fleem
-                    # but check for cyclic consistency
                     if _path in names:
+                        # [foo:bar:fleem]
                         wrapped_name = _path
                     else:
+                        # stub value for "anonymous" name
+                        # [foo:bar:%(here)s/objects.py:MyClass]
                         wrapped_name = section
 
                     # get wrapper options