summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-05-17 23:01:11 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2020-05-17 23:01:11 +0200
commit69f2cd516a41e719de37ce8939b59f45c4ff578a (patch)
treebd831167779cbe43eee15f88def06caf8c0d62f3 /examples
parent458ae1ce3cd11ff0023995e08178a575864ae41d (diff)
downloadpygobject-69f2cd516a41e719de37ce8939b59f45c4ff578a.tar.gz
flake8: fix errors with new flake8 3.8.0
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demos/printing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/demo/demos/printing.py b/examples/demo/demos/printing.py
index 6e68037d..a87bd6fd 100644
--- a/examples/demo/demos/printing.py
+++ b/examples/demo/demos/printing.py
@@ -92,8 +92,8 @@ class PrintingApp:
file_path = print_data['filename']
if not os.path.isfile(file_path):
file_path = os.path.join('demos', file_path)
- if not os.path.isfile:
- raise Exception("file not found: " % (file_path, ))
+ if not os.path.isfile(file_path):
+ raise Exception("file not found: %s" % (file_path, ))
# in reality you should most likely not read the entire
# file into a buffer