code: def decodeCommandLine(self, cmdline):
          
          codec = getattr(sys.stdin, 'encoding', None) or sys.getdefaultencoding()
          return unicode(cmdline, codec)
docs: Turn a byte string from the command line into a unicode string.