Commits

Amaury Forgeot d'Arc committed 1688e44

Add keyword arguments to str.encode and str.decode

  • Participants
  • Parent commits 3ddd090
  • Branches fast-forward

Comments (0)

Files changed (1)

File pypy/objspace/std/stringtype.py

                          ' mapped through the given\ntranslation table, which'
                          ' must be a string of length 256.')
 str_decode     = SMM('decode', 3, defaults=(None, None),
+                     argnames=['encoding', 'errors'],
                      doc='S.decode([encoding[,errors]]) -> object\n\nDecodes S'
                          ' using the codec registered for encoding. encoding'
                          ' defaults\nto the default encoding. errors may be'
                          ' name registerd with codecs.register_error that'
                          ' is\nable to handle UnicodeDecodeErrors.')
 str_encode     = SMM('encode', 3, defaults=(None, None),
+                     argnames=['encoding', 'errors'],
                      doc='S.encode([encoding[,errors]]) -> object\n\nEncodes S'
                          ' using the codec registered for encoding. encoding'
                          ' defaults\nto the default encoding. errors may be'