1
0
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:
deadc0de6
2022-06-03 23:09:22 +02:00
committed by deadc0de
parent ec135464ed
commit 97917c2f70
5 changed files with 203 additions and 21 deletions

View File

@@ -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)