diff options
Diffstat (limited to 'modules/language/python/string.scm')
-rw-r--r-- | modules/language/python/string.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/language/python/string.scm b/modules/language/python/string.scm index c1d7d1b..7ed0193 100644 --- a/modules/language/python/string.scm +++ b/modules/language/python/string.scm @@ -381,8 +381,10 @@ (apply (lam ((= encoding "UTF-8") (= errors "strict")) (set! errors (py-lower (scm-str errors))) (set! errors (cond - ((equal? errors "strict") + ((equal? errors "strict") 'error) + ((equal? errors "escape") + 'escape) ((equal? errors "replace") 'substitute) ((equal? errors "ignore") @@ -660,7 +662,7 @@ __repr__ __rmod__ __rmul__ __setattr__ __sizeof__ __str__ __subclasshook__ _formatter_field_name_split _formatter_parser - capitalize center count decode encode endswith + capitalize center count encode endswith expandtabs find format index isalnum isalpha isdigit islower isspace istitle isupper join ljust lower lstrip partition replace rfind rindex |