code: def parsePathname(self, pathname):
          
          if os.path.isdir(pathname):
              for root, dirs, files in os.walk(pathname):
                  dirs.sort()
                  files.sort()
                  for fn in files:
                      # ignore emacsish junk
                      if fn.endswith('.py') and not fn.startswith('.#'):
                          self.parseFile(os.path.join(root, fn))
          elif pathname.endswith('.importcache'):
              self.readCache(pathname)
          else:
              self.parseFile(pathname)
docs: Parse one or more source files.
  
          ``pathname`` may be a file name or a directory name.