Skip to content

Commit

Permalink
Fix PEP8 violations
Browse files Browse the repository at this point in the history
Recent versions of flake8 became more strict.

Signed-off-by: Christian Heimes <[email protected]>
  • Loading branch information
tiran authored and Nathaniel McCallum committed Jan 4, 2017
1 parent d9923b5 commit 5ed2ab9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kdcproxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ def __call__(self, env, start_response):
for addr in addrs + (None,):
if addr is not None:
# Bypass unspecified socktypes
if (len(scheme) > 1
and addr[1] != self.SOCKTYPES[scheme[1]]):
if (len(scheme) > 1 and
addr[1] != self.SOCKTYPES[scheme[1]]):
continue

# Create the socket
Expand Down Expand Up @@ -281,4 +281,5 @@ def __call__(self, env, start_response):
start_response(str(e), e.headers)
return [e.message]


application = Application()
3 changes: 3 additions & 0 deletions kdcproxy/config/mit.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
class KRB5Error(Exception):
pass


PY3 = sys.version_info[0] == 3


try:
LIBKRB5 = ctypes.CDLL('libkrb5.so.3')
except OSError as e: # pragma: no cover
Expand Down Expand Up @@ -272,6 +274,7 @@ def lookup(self, realm, kpasswd=False):
def use_dns(self, default=True):
return self.__config["dns"]


if __name__ == "__main__":
from pprint import pprint
with KRB5Profile() as prof:
Expand Down

0 comments on commit 5ed2ab9

Please sign in to comment.