diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-27 16:09:53 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-27 16:09:53 +0100 |
commit | 0ce5c1e6dcea6643cf72de885c0aca52bf4ac28c (patch) | |
tree | ef9109b762a46079ce91aa3376f727aa76abf8b8 /src/ee/__init__.py | |
parent | f14a40a4f80275daceeb73f944e1aa1f84d16c79 (diff) | |
download | ee-python-0ce5c1e6dcea6643cf72de885c0aca52bf4ac28c.tar.gz ee-python-0ce5c1e6dcea6643cf72de885c0aca52bf4ac28c.tar.bz2 ee-python-0ce5c1e6dcea6643cf72de885c0aca52bf4ac28c.tar.xz ee-python-0ce5c1e6dcea6643cf72de885c0aca52bf4ac28c.zip |
o Always sorting index.xml for better git diffs.
o Normalizing more Digikey facts.
o When creating distributor search lists, create a new plain <part> with
containing only the part numbers.
Diffstat (limited to 'src/ee/__init__.py')
-rw-r--r-- | src/ee/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ee/__init__.py b/src/ee/__init__.py index c7674c4..8a128f6 100644 --- a/src/ee/__init__.py +++ b/src/ee/__init__.py @@ -39,7 +39,7 @@ class EeVal(object): r = re.compile( "([0-9]+\\.[0-9]+|\\.?[0-9]+|[0-9]+\\.?) *([" + "".join(exponents.keys()) + "]?) *(" + "|".join(units) + "?)") - def __init__(self, s, value=None, exp=None, unit=None): + def __init__(self, s=None, value=None, exp=None, unit=None): # This is where I regret having a string in the API at once. if s: val = EeVal.parse(s) |