parameters: (fname)
docstring: Given a filename, return a quoted version if necessary
docstring_summary: Given a filename, return a quoted version if necessary
docstring_tokens: Given a filename return a quoted version if necessary
function: def QuotedFileName(fname):
      """Given a filename, return a quoted version if necessary
      """
      import regutil, string
      try:
          fname.index(" ") # Other chars forcing quote?
          return '"%s"' % fname
      except ValueError:
          # No space in name.
          return fname
function_tokens: def QuotedFileName ( fname ) : import regutil , string try : fname . index ( " " ) # Other chars forcing quote? return '"%s"' % fname except ValueError : # No space in name. return fname