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 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 != '.':
|
||||||
|
|
|
@ -112,4 +112,3 @@ class Subversion(BaseProject):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue