summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setuptools_scm/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools_scm/utils.py b/setuptools_scm/utils.py
index c58ec49..f744337 100644
--- a/setuptools_scm/utils.py
+++ b/setuptools_scm/utils.py
@@ -26,7 +26,7 @@ def ensure_stripped_str(str_or_bytes):
if isinstance(str_or_bytes, str):
return str_or_bytes.strip()
else:
- return str_or_bytes.decode('utf-8', 'surogate_escape').strip()
+ return str_or_bytes.decode('utf-8', 'surrogateescape').strip()
def _always_strings(env_dict):