tuples don't have pop

This commit is contained in:
Daniel Wallace 2019-01-23 11:10:04 -06:00
parent 55ea80ee6c
commit f553be764e
No known key found for this signature in database
GPG Key ID: 23676C5831BE870E

View File

@ -416,7 +416,7 @@ def flopen(*args, **kwargs):
'''
Shortcut for fopen with lock and context manager.
'''
filename = args.pop(0)
filename, args = args[0], args[1:]
writing = 'wa'
with fopen(filename, *args, **kwargs) as f_handle:
try: