Permalink
Browse files

replace old py2 method file() -> open()

  • Loading branch information...
Pusungwi authored and puzzlet committed Nov 14, 2012
1 parent 33014f9 commit a8ebf9e287687298e30189e98738a64689246a62
Showing with 1 addition and 1 deletion.
  1. +1 −1 werkzeug/datastructures.py
@@ -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)

0 comments on commit a8ebf9e

Please sign in to comment.