10000 fix unit examples under python3 · matplotlib/matplotlib@5b8e4bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b8e4bb

Browse files
committed
fix unit examples under python3
1 parent c8ed7ba commit 5b8e4bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/units/basic_units.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ def __new__(cls, value, unit):
123123
{})
124124
if subcls not in units.registry:
125125
units.registry[subcls] = basicConverter
126-
return object.__new__(subcls, value, unit)
126+
return object.__new__(subcls)
127127
except TypeError:
128128
if cls not in units.registry:
129129
units.registry[cls] = basicConverter
130-
return object.__new__(cls, value, unit)
130+
return object.__new__(cls)
131131

132132
def __init__(self, value, unit):
133133
self.value = value

0 commit comments

Comments
 (0)
0