@@ -252,30 +252,30 @@ def get_hashval(self, hash_method=None):
252
252
253
253
Returns
254
254
-------
255
- dict_withhash : dict
255
+ list_withhash : dict
256
256
Copy of our dictionary with the new file hashes included
257
257
with each file.
258
258
hashvalue : str
259
259
The md5 hash value of the traited spec
260
260
261
261
"""
262
262
263
- dict_withhash = []
264
- dict_nofilename = []
263
+ list_withhash = []
264
+ list_nofilename = []
265
265
for name , val in sorted (self .get ().items ()):
266
266
if not isdefined (val ) or self .has_metadata (name , "nohash" , True ):
267
267
# skip undefined traits and traits with nohash=True
268
268
continue
269
269
270
270
hash_files = (not self .has_metadata (name , "hash_files" , False ) and not
271
271
self .has_metadata (name , "name_source" ))
272
- dict_nofilename .append ((name ,
272
+ list_nofilename .append ((name ,
273
273
self ._get_sorteddict (val , hash_method = hash_method ,
274
274
hash_files = hash_files )))
275
- dict_withhash .append ((name ,
275
+ list_withhash .append ((name ,
276
276
self ._get_sorteddict (val , True , hash_method = hash_method ,
277
277
hash_files = hash_files )))
278
- return dict_withhash , md5 (to_str (dict_nofilename ).encode ()).hexdigest ()
278
+ return list_withhash , md5 (to_str (list_nofilename ).encode ()).hexdigest ()
279
279
280
280
def _get_sorteddict (self , objekt , dictwithhash = False , hash_method = None ,
281
281
hash_files = True ):
0 commit comments