"wrappers/vscode:/vscode.git/clone" did not exist on "948fd27365e8157ae2a3bdaefb2805f6bf41cae8"
Commit 8e346de8 authored by Jason Swails's avatar Jason Swails
Browse files

Fix Python 3 support in unit package.

parent 96f0c0f2
......@@ -77,6 +77,7 @@ import math
import copy
from .standard_dimensions import *
from .unit import Unit, is_unit, dimensionless
import sys
class Quantity(object):
"""Physical quantity, such as 1.3 meters per second.
......@@ -818,6 +819,8 @@ def _is_string(x):
except StopIteration:
return False
if sys.version_info >= (3,):
del Quantity.__nonzero__
# run module directly for testing
if __name__=='__main__':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment