mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-05 21:58:02 +00:00
restore dictparser
This commit is contained in:
@@ -27,9 +27,9 @@ class DictParser:
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
newv = cls._adjust_yaml_keys(tmp)
|
newv = cls._adjust_yaml_keys(tmp)
|
||||||
if key:
|
if not key:
|
||||||
newv[key] = key
|
return cls(**newv)
|
||||||
return cls(**newv)
|
return cls(key=key, **newv)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def parse_dict(cls, items):
|
def parse_dict(cls, items):
|
||||||
|
|||||||
Reference in New Issue
Block a user