Skip to content

Commit

Permalink
shutil: Work around type checker problem
Browse files Browse the repository at this point in the history
Cast tuple type to 'tuple'. See also issue #158.
  • Loading branch information
JukkaL committed Feb 25, 2013
1 parent 9e867d7 commit 4a77077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-lib/shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def _set_uid_gid(tarinfo):
if not isinstance(extra_args, (tuple, list)):
raise TypeError('extra_args needs to be a sequence')
for element in extra_args:
if not isinstance(element, (tuple, list)) or len(element) !=2 :
if not isinstance(element, (tuple, list)) or len((tuple)element) !=2 :
raise TypeError('extra_args elements are : (arg_name, value)')

_ARCHIVE_FORMATS[name] = (function, list(extra_args), description)
Expand Down

0 comments on commit 4a77077

Please sign in to comment.