Use attributes appropriately

This commit is contained in:
Neal Norwitz 2002-04-01 19:00:50 +00:00
parent b1295da59e
commit 28bb572ab4
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ class FakeSocket:
def makefile(self, mode, bufsize=None):
if mode != 'r' and mode != 'rb':
raise UnimplementedFileMode()
raise httplib.UnimplementedFileMode()
return StringIO.StringIO(self.text)
# Test HTTP status lines