[PATCH 2/7] Fix sy -> sys in pwclient error path

Daniel Axtens dja at axtens.net
Thu Jan 25 13:43:12 AEDT 2018


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 at axtens.net>

--

This is a bit embarassing for me as I reviewed the patch that broke it.

It also reveals that we don't do flake8 in travis, so I will fix that too.
---
 patchwork/bin/pwclient | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patchwork/bin/pwclient b/patchwork/bin/pwclient
index 857c8e93f396..29cad8969165 100755
--- a/patchwork/bin/pwclient
+++ b/patchwork/bin/pwclient
@@ -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..
-- 
2.14.1



More information about the Patchwork mailing list