##// END OF EJS Templates
commandserver: clean up use of two-argument raise...
Augie Fackler -
r18174:56ef99fb default
parent child Browse files
Show More
@@ -42,7 +42,7 b' class channeledoutput(object):'
42
42
43 def __getattr__(self, attr):
43 def __getattr__(self, attr):
44 if attr in ('isatty', 'fileno'):
44 if attr in ('isatty', 'fileno'):
45 raise AttributeError, attr
45 raise AttributeError(attr)
46 return getattr(self.in_, attr)
46 return getattr(self.in_, attr)
47
47
48 class channeledinput(object):
48 class channeledinput(object):
@@ -122,7 +122,7 b' class channeledinput(object):'
122
122
123 def __getattr__(self, attr):
123 def __getattr__(self, attr):
124 if attr in ('isatty', 'fileno'):
124 if attr in ('isatty', 'fileno'):
125 raise AttributeError, attr
125 raise AttributeError(attr)
126 return getattr(self.in_, attr)
126 return getattr(self.in_, attr)
127
127
128 class server(object):
128 class server(object):
General Comments 0
You need to be logged in to leave comments. Login now