From c6bd06280f760505ea1af9371208d82b8be83a58 Mon Sep 17 00:00:00 2001 From: Jannis Gebauer Date: Tue, 6 Sep 2016 14:53:36 +0200 Subject: [PATCH] fixed a silly encoding error on legacy python --- CHANGELOG.md | 3 +++ statuspage/statuspage.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 219269c..699b325 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All enhancements and patches to statuspage will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## 0.8.1 [2016-09-6] +- Fixed a silly encoding error on legacy python + ## 0.8.0 [2016-09-2] - Added client side translation. - Added german translation. diff --git a/statuspage/statuspage.py b/statuspage/statuspage.py index 5f3bc82..2f9be7b 100644 --- a/statuspage/statuspage.py +++ b/statuspage/statuspage.py @@ -473,7 +473,7 @@ def sha1(c): if isinstance(c, str): c = bytes(c, "utf-8") else: - c = c.encode() + c = c.encode("utf-8") return hashlib.sha1(c) return sha1(c1).hexdigest() == sha1(c2).hexdigest()