fix pep8 linting errors

This commit is contained in:
Alan Hamlett 2017-10-23 22:01:31 -07:00
parent b828542a08
commit f2f9452068
6 changed files with 15 additions and 19 deletions

View file

@ -82,7 +82,7 @@ except ImportError: # pragma: nocover
if name.startswith('.'): if name.startswith('.'):
if not package: if not package:
raise TypeError("relative imports require the 'package' " raise TypeError("relative imports require the 'package' "
+ "argument") "argument")
level = 0 level = 0
for character in name: for character in name:
if character != '.': if character != '.':

View file

@ -112,4 +112,3 @@ class Subversion(BaseProject):
except: except:
pass pass
return False return False

View file

@ -40,7 +40,6 @@ class SessionCache(object):
''') ''')
return (conn, c) return (conn, c)
def save(self, session): def save(self, session):
"""Saves a requests.Session object for the next heartbeat process. """Saves a requests.Session object for the next heartbeat process.
""" """
@ -59,7 +58,6 @@ class SessionCache(object):
except: # pragma: nocover except: # pragma: nocover
log.traceback(logging.DEBUG) log.traceback(logging.DEBUG)
def get(self): def get(self):
"""Returns a requests.Session object. """Returns a requests.Session object.
@ -92,7 +90,6 @@ class SessionCache(object):
return session if session is not None else requests.session() return session if session is not None else requests.session()
def delete(self): def delete(self):
"""Clears all cached Session objects. """Clears all cached Session objects.
""" """