summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2018-07-26 13:00:32 +0300
committerHugo <hugovk@users.noreply.github.com>2018-07-26 13:00:32 +0300
commit330fec6a5f85e4968979109b76269ad0ec1ca23f (patch)
treeb1e3d56028eae52b90c083eb20755f039f17051a
parent9f395d00fbee9bcc6b8c73cb27530953a785ed29 (diff)
downloadblinker-330fec6a5f85e4968979109b76269ad0ec1ca23f.tar.gz
Upgrade Python syntax with pyupgrade
-rw-r--r--blinker/_saferef.py2
-rw-r--r--blinker/_utilities.py2
-rw-r--r--blinker/base.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/blinker/_saferef.py b/blinker/_saferef.py
index 269e362..081173d 100644
--- a/blinker/_saferef.py
+++ b/blinker/_saferef.py
@@ -198,7 +198,7 @@ class BoundMethodWeakref(object):
def __str__(self):
"""Give a friendly representation of the object."""
- return "%s(%s.%s)" % (
+ return "{}({}.{})".format(
self.__class__.__name__,
self.self_name,
self.func_name,
diff --git a/blinker/_utilities.py b/blinker/_utilities.py
index babeb74..133c57a 100644
--- a/blinker/_utilities.py
+++ b/blinker/_utilities.py
@@ -53,7 +53,7 @@ except:
copy.deepcopy(self.items()))
def __repr__(self):
- return 'defaultdict(%s, %s)' % (self.default_factory,
+ return 'defaultdict({}, {})'.format(self.default_factory,
dict.__repr__(self))
diff --git a/blinker/base.py b/blinker/base.py
index f16f22a..acf595b 100644
--- a/blinker/base.py
+++ b/blinker/base.py
@@ -416,7 +416,7 @@ class NamedSignal(Signal):
def __repr__(self):
base = Signal.__repr__(self)
- return "%s; %r>" % (base[:-1], self.name)
+ return "{}; {!r}>".format(base[:-1], self.name)
class Namespace(dict):