]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Fix sy -> sys in pwclient error path
authorDaniel Axtens <dja@axtens.net>
Thu, 25 Jan 2018 02:43:12 +0000 (13:43 +1100)
committerStephen Finucane <stephen@that.guru>
Fri, 26 Jan 2018 21:25:03 +0000 (21:25 +0000)
While running docker-compose run web --quick-tox, I got this
flake8/pep8 error for pwclient:

patchwork/bin/pwclient:713:9: F821 undefined name 'sy'

Fix by converting to 'sys' instead, which was intended.

Fixes: 58160097f957 ("pwclient: Resolve pycode warnings")
Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/bin/pwclient

index 857c8e93f3961fa3706b908b3332e855305e8c69..29cad89691657b7c96eebfcae192b1f02e1c1455 100755 (executable)
@@ -710,7 +710,7 @@ installed locales.
     try:
         rpc = xmlrpclib.Server(url, transport=transport)
     except (IOError, OSError):
-        sy.stderr.write("Unable to connect to %s\n" % url)
+        sys.stderr.write("Unable to connect to %s\n" % url)
         sys.exit(1)
 
     # It should be safe to assume hash_str is not zero, but who knows..