From: Frank Brehm Date: Tue, 21 Aug 2018 09:05:37 +0000 (+0200) Subject: Applying some flake8 rules X-Git-Tag: 0.8.5^2 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=881bd5b9634ab77572d7064ebbc0ed3c65ece59e;p=pixelpark%2Fpuppetmaster-webhooks.git Applying some flake8 rules --- diff --git a/lib/webhooks/r10k.py b/lib/webhooks/r10k.py index c154431..bc6c49c 100644 --- a/lib/webhooks/r10k.py +++ b/lib/webhooks/r10k.py @@ -16,7 +16,6 @@ import textwrap import locale import pipes import urllib.parse -import time import warnings # Third party modules @@ -25,7 +24,7 @@ import requests # Own modules import webhooks -from .common import pp, to_str, to_bool +from .common import to_str from .base_app import BaseHookApp @@ -269,7 +268,7 @@ class R10kHookApp(BaseHookApp): msg = "Got status code: {}.".format(response.status_code) if response.text: - msg += "\nOutput:\n{}".format(response.text) + msg += "\nOutput:\n{}".format(response.text) else: msg += " No output." LOG.warn(msg)