From c68c47e9e764162055b3515d47af234c88e03df6 Mon Sep 17 00:00:00 2001
From: Shamil K Muhammed <noteness@disroot.org>
Date: Thu, 18 May 2017 13:15:45 +0530
Subject: [PATCH] PEP8 Code and Fix MANIFEST.in

---
 MANIFEST.in               | 4 ++--
 diaspora_auth_provider.py | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/MANIFEST.in b/MANIFEST.in
index 2b112f6..a5021c6 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,2 +1,2 @@
-README.rst
-LICENSE
\ No newline at end of file
+include README.rst
+include LICENSE
diff --git a/diaspora_auth_provider.py b/diaspora_auth_provider.py
index cc3dd04..5d012e1 100644
--- a/diaspora_auth_provider.py
+++ b/diaspora_auth_provider.py
@@ -67,7 +67,8 @@ class DiasporaAuthProvider:
                     # user exists, check if the password is correct.
                     encrypted_password = user[1]
                     peppered_pass = "{}{}".format(password, self.config.pepper)
-                    if not (bcrypt.hashpw(peppered_pass.encode('utf8'), encrypted_password.encode('utf8')) == encrypted_password.encode('utf8')):
+                    if not (bcrypt.hashpw(peppered_pass.encode('utf8'), encrypted_password.encode('utf8')) \
+                            == encrypted_password.encode('utf8')):
                         logger.info("Password given for {} is wrong. Rejecting auth request.".format(local_part))
                         defer.returnValue(False)
                     # Ok, user's password is correct. check if the user exists in the homeserver db.
-- 
GitLab