mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 23:49:16 +00:00
import and trans_w
This commit is contained in:
@@ -286,7 +286,7 @@ class CfgAggregator:
|
||||
islist=False)
|
||||
self._patch_keys_to_objs(self.dotfiles,
|
||||
"trans_w",
|
||||
self._get_trans_w_args(self._get_trans_w),
|
||||
self._get_trans_w_args(self.get_trans_w),
|
||||
islist=False)
|
||||
|
||||
def _patch_keys_to_objs(self, containers, keys, get_by_key, islist=True):
|
||||
@@ -460,7 +460,7 @@ class CfgAggregator:
|
||||
except StopIteration:
|
||||
return None
|
||||
|
||||
def _get_trans_w(self, key):
|
||||
def get_trans_w(self, key):
|
||||
"""return the trans_w with this key"""
|
||||
try:
|
||||
return next(x for x in self.trans_w if x.key == key)
|
||||
|
||||
Reference in New Issue
Block a user