summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjab <jab@users.noreply.github.com>2018-02-28 22:35:20 +1100
committerGitHub <noreply@github.com>2018-02-28 22:35:20 +1100
commit5081e5c9f90f0ceb52eed0c7ca506a8eb6639e7b (patch)
tree1eb65193794f239557476ef293a6547f18433f87
parenta966a798a5becfc22e0a7916e74c68387e69de68 (diff)
downloadsetuptools-scm-5081e5c9f90f0ceb52eed0c7ca506a8eb6639e7b.tar.gz
Fix misspelled "surogate_escape" bug.
s/surogate_escape/surrogateescape
-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):