git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b0c457a
)
fixed object.__new__ depreciation warning
author
Forrest Voight
<forrest@forre.st>
Mon, 23 Jan 2012 23:25:59 +0000 (18:25 -0500)
committer
Forrest Voight
<forrest@forre.st>
Mon, 23 Jan 2012 23:25:59 +0000 (18:25 -0500)
p2pool/bitcoin/data.py
patch
|
blob
|
history
diff --git
a/p2pool/bitcoin/data.py
b/p2pool/bitcoin/data.py
index
8f9e06a
..
e47e291
100644
(file)
--- a/
p2pool/bitcoin/data.py
+++ b/
p2pool/bitcoin/data.py
@@
-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