Skip to content

Commit

Permalink
don't warn about pickle.load()
Browse files Browse the repository at this point in the history
  • Loading branch information
reece committed Apr 18, 2019
1 parent c90359a commit f052d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hgvs/utils/PersistentDict.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, filename, flag='c', *args, **kwds):
self.flag = flag # r=readonly, c=create,write,read
try:
with open(self.filename, 'rb') as f:
self.update(pickle.load(f))
self.update(pickle.load(f)) # noqa: B301,BAN-B301
except IOError:
if self.flag == 'r':
raise IOError('Cannot open file ' + self.filename)
Expand Down

0 comments on commit f052d03

Please sign in to comment.