Index: test/lib/TestWin.py |
diff --git a/test/lib/TestWin.py b/test/lib/TestWin.py |
index 7627197b1f343421f64b46370235a34f72118e41..2234253a3590919ee534abeb11f40b525a9429b2 100644 |
--- a/test/lib/TestWin.py |
+++ b/test/lib/TestWin.py |
@@ -63,7 +63,7 @@ class Registry(object): |
text = None |
try: |
text = self._QueryBase('Sysnative', key, value) |
- except OSError, e: |
+ except OSError as e: |
if e.errno == errno.ENOENT: |
text = self._QueryBase('System32', key, value) |
else: |