summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>2012-10-11 01:14:12 +0200
committerUli Schlachter <psychon@znc.in>2012-11-10 19:45:25 +0100
commit76a2166de9c80b35f987fdc3f3a228bafa0de94e (patch)
tree8617ef54290aa28c216fed7bdf52d0e3e988ca22
parent9db4517c87f56bb0ac82b647a08db30850ee2b04 (diff)
c_client.py: Fix python-3 invalid except statement
Replace except statement with a PEP-3110 compliant one. This fixes a regression introduced by c3deeaf714630531d693a6a902b8dabf791858b1 https://bugs.freedesktop.org/show_bug.cgi?id=55690 Reviewed-by: Peter Harris <pharris@opentext.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
-rw-r--r--src/c_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_client.py b/src/c_client.py
index 9952a09..ec66223 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -2908,7 +2908,7 @@ Refer to the README file in xcb/proto for more info.
# Ensure the man subdirectory exists
try:
os.mkdir('man')
-except OSError, e:
+except OSError as e:
if e.errno != errno.EEXIST:
raise