mercurial/commandserver.py
changeset 18174 56ef99fbd6f2
parent 17425 e95ec38f86b0
child 18359 4b09e6f7d7de
--- a/mercurial/commandserver.py	Mon Dec 31 21:50:35 2012 -0600
+++ b/mercurial/commandserver.py	Tue Jan 01 12:50:04 2013 -0600
@@ -42,7 +42,7 @@
 
     def __getattr__(self, attr):
         if attr in ('isatty', 'fileno'):
-            raise AttributeError, attr
+            raise AttributeError(attr)
         return getattr(self.in_, attr)
 
 class channeledinput(object):
@@ -122,7 +122,7 @@
 
     def __getattr__(self, attr):
         if attr in ('isatty', 'fileno'):
-            raise AttributeError, attr
+            raise AttributeError(attr)
         return getattr(self.in_, attr)
 
 class server(object):