parameters: (self)
docstring: Finalize current argument, effectively adding it to the list.
          Perform globbing if needed.
docstring_summary: Finalize current argument, effectively adding it to the list.
          Perform globbing if needed.
docstring_tokens: Finalize current argument effectively adding it to the list . Perform globbing if needed .
function: def _next(self):
          """
          Finalize current argument, effectively adding it to the list.
          Perform globbing if needed.
          """
          if self.arg is None:
              return
          if self.glob:
              if os.path.isabs(self.arg):
                  path = self.arg
              else:
                  path = os.path.join(self.cwd, self.arg)
              globbed = glob.glob(path)
              if not globbed:
                  # If globbing doesn't find anything, the literal string is
                  # used.
                  self.append(self.arg)
              else:
                  self.extend(f[len(path)-len(self.arg):] for f in globbed)
              self.glob = False
          else:
              self.append(self.arg)
          self.arg = None
function_tokens: def _next ( self ) : if self . arg is None : return if self . glob : if os . path . isabs ( self . arg ) : path = self . arg else : path = os . path . join ( self . cwd , self . arg ) globbed = glob . glob ( path ) if not globbed : # If globbing doesn't find anything, the literal string is # used. self . append ( self . arg ) else : self . extend ( f [ len ( path ) - len ( self . arg ) : ] for f in globbed ) self . glob = False else : self . append ( self . arg ) self . arg = None