Skip to content

Commit f1ecf09

Browse files
committed
Remove glob, locl from from_string
- Ditto for `_from_string`
1 parent 5ee0306 commit f1ecf09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_CNDB/_OMP/Attr_Type.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
# (needs to nested inside `_Attributes`; attribute names)
3838
# 11-Dec-2015 (CT) Use `attr_types_of_module`, not home-grown code
3939
# 9-Feb-2016 (CT) Make `_from_string` arguments `obj, glob, locl` optional
40+
# 28-Apr-2016 (CT) Remove `glob`, `locl` from `from_string`, `_from_string`
4041
# ««revision-date»»···
4142
#--
4243

@@ -96,8 +97,8 @@ class A_TX_Power (_A_Unit_, _A_Float_) :
9697
, dBW = 1
9798
)
9899

99-
def _from_string (self, s, obj = None, glob = {}, locl = {}) :
100-
v = self.__super._from_string (s, obj, glob, locl)
100+
def _from_string (self, s, obj = None) :
101+
v = self.__super._from_string (s, obj)
101102
pat = self._unit_pattern
102103
unit = ""
103104
if pat.search (s) :

0 commit comments

Comments
 (0)