Skip to content

Commit e970941

Browse files
committed
replace theobject with objekt
1 parent 7197b6a commit e970941

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

nipype/interfaces/base.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -584,46 +584,46 @@ def get_hashval(self, hash_method=None):
584584
return dict_withhash, md5(encode_dict(dict_nofilename).encode()).hexdigest()
585585

586586

587-
def _get_sorteddict(self, theobject, dictwithhash=False, hash_method=None,
587+
def _get_sorteddict(self, objekt, dictwithhash=False, hash_method=None,
588588
hash_files=True):
589-
if isinstance(theobject, dict):
589+
if isinstance(objekt, dict):
590590
out = []
591-
for key, val in sorted(theobject.items()):
591+
for key, val in sorted(objekt.items()):
592592
if isdefined(val):
593593
out.append((key,
594594
self._get_sorteddict(val, dictwithhash,
595595
hash_method=hash_method,
596596
hash_files=hash_files)))
597-
elif isinstance(theobject, (list, tuple)):
597+
elif isinstance(objekt, (list, tuple)):
598598
out = []
599-
for val in theobject:
599+
for val in objekt:
600600
if isdefined(val):
601601
out.append(self._get_sorteddict(val, dictwithhash,
602602
hash_method=hash_method,
603603
hash_files=hash_files))
604-
if isinstance(theobject, tuple):
604+
if isinstance(objekt, tuple):
605605
out = tuple(out)
606606
else:
607-
if isdefined(theobject):
608-
if (hash_files and isinstance(theobject, (str, bytes)) and
609-
os.path.isfile(theobject)):
607+
if isdefined(objekt):
608+
if (hash_files and isinstance(objekt, (str, bytes)) and
609+
os.path.isfile(objekt)):
610610
if hash_method is None:
611611
hash_method = config.get('execution', 'hash_method')
612612

613613
if hash_method.lower() == 'timestamp':
614-
hash = hash_timestamp(theobject)
614+
hash = hash_timestamp(objekt)
615615
elif hash_method.lower() == 'content':
616-
hash = hash_infile(theobject)
616+
hash = hash_infile(objekt)
617617
else:
618618
raise Exception("Unknown hash method: %s" % hash_method)
619619
if dictwithhash:
620-
out = (theobject, hash)
620+
out = (objekt, hash)
621621
else:
622622
out = hash
623-
elif isinstance(theobject, float):
624-
out = FLOAT_FORMAT(theobject)
623+
elif isinstance(objekt, float):
624+
out = FLOAT_FORMAT(objekt)
625625
else:
626-
out = theobject
626+
out = objekt
627627
return out
628628

629629

0 commit comments

Comments
 (0)