From ba98bcd4a07c589722c6db103b363c8aa1d3561d Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 24 Dec 2018 09:43:45 +0100 Subject: Use f-strings where possible Replaces str.format, which is less readable due to its separation of format and arguments. --- crocoite/behavior.py | 10 +++++----- crocoite/browser.py | 2 +- crocoite/controller.py | 2 +- crocoite/devtools.py | 23 ++++++++++++----------- crocoite/irc.py | 32 +++++++++++++++----------------- crocoite/test_browser.py | 2 +- crocoite/test_devtools.py | 14 +++++++++----- crocoite/test_tools.py | 2 +- crocoite/tools.py | 13 ++++++------- crocoite/util.py | 4 ++-- crocoite/warc.py | 19 ++++++++++--------- 11 files changed, 63 insertions(+), 60 deletions(-) (limited to 'crocoite') diff --git a/crocoite/behavior.py b/crocoite/behavior.py index 321b65c..7f3a3a0 100644 --- a/crocoite/behavior.py +++ b/crocoite/behavior.py @@ -59,7 +59,7 @@ class Script: self.data = pkg_resources.resource_string (__name__, os.path.join ('data', path)).decode (encoding) def __repr__ (self): - return '