Commits

Anonymous committed 6daaa98

- Don't try to glob patterns without wildchars (or else module names are
discarded).

  • Participants
  • Parent commits d441465

Comments (0)

Files changed (1)

File epydoc/src/epydoc/cli.py

         optparser.error("No names specified.")
         
     # perform shell expansion.
-    names = sum(map(glob, names), [])
+    for i, name in enumerate(names[:]):
+        if '?' in name or '*' in name:
+            names[i:i+1] = glob(name)
         
     if options.inheritance not in INHERITANCE_STYLES:
         optparser.error("Bad inheritance style.  Valid options are " +