fix pep8 linting errors
This commit is contained in:
parent
b828542a08
commit
f2f9452068
6 changed files with 15 additions and 19 deletions
|
@ -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 != '.':
|
||||
|
|
|
@ -112,4 +112,3 @@ class Subversion(BaseProject):
|
|||
except:
|
||||
pass
|
||||
return False
|
||||
|
||||
|
|
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue