@@ -252,30 +252,30 @@ def get_hashval(self, hash_method=None):
252252
253253 Returns
254254 -------
255- dict_withhash : dict
255+ list_withhash : dict
256256 Copy of our dictionary with the new file hashes included
257257 with each file.
258258 hashvalue : str
259259 The md5 hash value of the traited spec
260260
261261 """
262262
263- dict_withhash = []
264- dict_nofilename = []
263+ list_withhash = []
264+ list_nofilename = []
265265 for name , val in sorted (self .get ().items ()):
266266 if not isdefined (val ) or self .has_metadata (name , "nohash" , True ):
267267 # skip undefined traits and traits with nohash=True
268268 continue
269269
270270 hash_files = (not self .has_metadata (name , "hash_files" , False ) and not
271271 self .has_metadata (name , "name_source" ))
272- dict_nofilename .append ((name ,
272+ list_nofilename .append ((name ,
273273 self ._get_sorteddict (val , hash_method = hash_method ,
274274 hash_files = hash_files )))
275- dict_withhash .append ((name ,
275+ list_withhash .append ((name ,
276276 self ._get_sorteddict (val , True , hash_method = hash_method ,
277277 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 ()
279279
280280 def _get_sorteddict (self , objekt , dictwithhash = False , hash_method = None ,
281281 hash_files = True ):
0 commit comments