Skip to content

Commit

Permalink
replace old py2 method file() -> open()
Browse files Browse the repository at this point in the history
  • Loading branch information
Pusungwi authored and puzzlet committed Nov 24, 2012
1 parent 33014f9 commit a8ebf9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion werkzeug/datastructures.py
Expand Up @@ -2543,7 +2543,7 @@ def save(self, dst, buffer_size=16384):
from shutil import copyfileobj
close_dst = False
if isinstance(dst, basestring):
dst = file(dst, 'wb')
dst = open(dst, 'wb')
close_dst = True
try:
copyfileobj(self.stream, dst, buffer_size)
Expand Down

0 comments on commit a8ebf9e

Please sign in to comment.