fix make pep8
This commit is contained in:
@@ -39,6 +39,7 @@ def _patch_logging():
|
|||||||
# sys.stderr using a fallback logger
|
# sys.stderr using a fallback logger
|
||||||
fallback_handler = QuietStreamHandler(sys.stderr)
|
fallback_handler = QuietStreamHandler(sys.stderr)
|
||||||
fallback_handler.setFormatter(logging.Formatter(FALL_FORMAT))
|
fallback_handler.setFormatter(logging.Formatter(FALL_FORMAT))
|
||||||
|
|
||||||
def handleError(self, record):
|
def handleError(self, record):
|
||||||
try:
|
try:
|
||||||
fallback_handler.handle(record)
|
fallback_handler.handle(record)
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ class DataSource(object):
|
|||||||
# make up a hostname (LP: #475354) in format ip-xx.xx.xx.xx
|
# make up a hostname (LP: #475354) in format ip-xx.xx.xx.xx
|
||||||
lhost = self.metadata['local-hostname']
|
lhost = self.metadata['local-hostname']
|
||||||
if util.is_ipv4(lhost):
|
if util.is_ipv4(lhost):
|
||||||
toks = [ "ip-%s" % lhost.replace(".", "-") ]
|
toks = ["ip-%s" % lhost.replace(".", "-")]
|
||||||
else:
|
else:
|
||||||
toks = lhost.split(".")
|
toks = lhost.split(".")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user