parameters: (js)
return_statement: return outs.getvalue()
docstring: returns a minified version of the javascript string
docstring_summary: returns a minified version of the javascript string
docstring_tokens: returns a minified version of the javascript string
function: def jsmin(js):
      """
      returns a minified version of the javascript string
      """
      if not is_3:
          if cStringIO and not isinstance(js, unicode):
              # strings can use cStringIO for a 3x performance
              # improvement, but unicode (in python2) cannot
              klass = cStringIO.StringIO
          else:
              klass = StringIO.StringIO
      else:
          klass = io.StringIO
      ins = klass(js)
      outs = klass()
      JavascriptMinify(ins, outs).minify()
      return outs.getvalue()
function_tokens: def jsmin ( js ) : if not is_3 : if cStringIO and not isinstance ( js , unicode ) : # strings can use cStringIO for a 3x performance # improvement, but unicode (in python2) cannot klass = cStringIO . StringIO else : klass = StringIO . StringIO else : klass = io . StringIO ins = klass ( js ) outs = klass ( ) JavascriptMinify ( ins , outs ) . minify ( ) return outs . getvalue ( )