fixed object.__new__ depreciation warning
authorForrest Voight <forrest@forre.st>
Mon, 23 Jan 2012 23:25:59 +0000 (18:25 -0500)
committerForrest Voight <forrest@forre.st>
Mon, 23 Jan 2012 23:25:59 +0000 (18:25 -0500)
p2pool/bitcoin/data.py

index 8f9e06a..e47e291 100644 (file)
@@ -217,7 +217,7 @@ class IntType(Type):
         if bits in [8, 16, 32, 64]:
             return StructType(('<' if endianness == 'little' else '>') + {8: 'B', 16: 'H', 32: 'I', 64: 'Q'}[bits])
         else:
-            return object.__new__(cls, bits, endianness)
+            return Type.__new__(cls, bits, endianness)
     
     def __init__(self, bits, endianness='little'):
         assert bits % 8 == 0