A few pep8/pylint cleanups.
This commit is contained in:
parent
48b6408101
commit
698a9897e3
@ -46,11 +46,8 @@ class Merger(object):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
s = ('DictMerger: (method=%s,recurse_str=%s,'
|
s = ('DictMerger: (method=%s,recurse_str=%s,'
|
||||||
'recurse_dict=%s,recurse_array=%s,allow_delete=%s)')
|
'recurse_dict=%s,recurse_array=%s,allow_delete=%s)')
|
||||||
s = s % (self._method,
|
s = s % (self._method, self._recurse_str,
|
||||||
self._recurse_str,
|
self._recurse_dict, self._recurse_array, self._allow_delete)
|
||||||
self._recurse_dict,
|
|
||||||
self._recurse_array,
|
|
||||||
self._allow_delete)
|
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def _do_dict_replace(self, value, merge_with, do_replace):
|
def _do_dict_replace(self, value, merge_with, do_replace):
|
||||||
|
@ -47,7 +47,7 @@ class Merger(object):
|
|||||||
def _on_list(self, value, merge_with):
|
def _on_list(self, value, merge_with):
|
||||||
if (self._method == 'replace' and
|
if (self._method == 'replace' and
|
||||||
not isinstance(merge_with, (tuple, list))):
|
not isinstance(merge_with, (tuple, list))):
|
||||||
return merge_with
|
return merge_with
|
||||||
|
|
||||||
# Ok we now know that what we are merging with is a list or tuple.
|
# Ok we now know that what we are merging with is a list or tuple.
|
||||||
merged_list = []
|
merged_list = []
|
||||||
|
Loading…
Reference in New Issue
Block a user