aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/forknotify.py
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-02-07 15:25:26 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-02-07 15:28:50 +0100
commitb709fe7ffc44ae14bbd2403cdfbfa4fcf94cef6b (patch)
tree9f6005c08a05024d07bcbf358f9b170d3c77f857 /qa/rpc-tests/forknotify.py
parent729de15b6365face6ae9e12a03624da33a6302f0 (diff)
parent90fd29bd0dcbaf5d5c4ef9e69824297c35f0b88e (diff)
downloadbitcoin-b709fe7ffc44ae14bbd2403cdfbfa4fcf94cef6b.tar.xz
Merge #9532: Remove unused variables
90fd29b Remove unused int64_t nSinceLastSeen (practicalswift) ac4a095 Remove unused Python variables (practicalswift)
Diffstat (limited to 'qa/rpc-tests/forknotify.py')
-rwxr-xr-xqa/rpc-tests/forknotify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/forknotify.py b/qa/rpc-tests/forknotify.py
index a1901aedab..8b1403083f 100755
--- a/qa/rpc-tests/forknotify.py
+++ b/qa/rpc-tests/forknotify.py
@@ -22,7 +22,7 @@ class ForkNotifyTest(BitcoinTestFramework):
def setup_network(self):
self.nodes = []
self.alert_filename = os.path.join(self.options.tmpdir, "alert.txt")
- with open(self.alert_filename, 'w', encoding='utf8') as f:
+ with open(self.alert_filename, 'w', encoding='utf8'):
pass # Just open then close to create zero-length file
self.nodes.append(start_node(0, self.options.tmpdir,
["-blockversion=2", "-alertnotify=echo %s >> \"" + self.alert_filename + "\""]))