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 not package:
raise TypeError("relative imports require the 'package' "
+ "argument")
"argument")
level = 0
for character in name:
if character != '.':

View file

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

View file

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