summaryrefslogtreecommitdiff
path: root/serial/urlhandler
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2015-08-21 23:15:45 +0200
committerChris Liechti <cliechti@gmx.net>2015-08-21 23:15:45 +0200
commit876801a5c65e097b31b6824e055a0e99bcdc595e (patch)
tree6d812e5758381f07ee0c4621a91b700aa16cb0cb /serial/urlhandler
parentd14b1ab6ecdf39020c7a2f6a1efee1c21254d176 (diff)
downloadpyserial-git-876801a5c65e097b31b6824e055a0e99bcdc595e.tar.gz
spy: rename parameter dev -> file
Diffstat (limited to 'serial/urlhandler')
-rw-r--r--serial/urlhandler/protocol_spy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/urlhandler/protocol_spy.py b/serial/urlhandler/protocol_spy.py
index d6ed458..c06d9c0 100644
--- a/serial/urlhandler/protocol_spy.py
+++ b/serial/urlhandler/protocol_spy.py
@@ -167,7 +167,7 @@ class Serial(serial.Serial):
output = sys.stderr
try:
for option, values in urlparse.parse_qs(parts.query, True).items():
- if option == 'dev':
+ if option == 'file':
output = open(values[0], 'w')
elif option == 'color':
color = True