aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-12-20 07:00:39 +0600
committerSergey M․ <dstftw@gmail.com>2015-12-20 07:00:39 +0600
commit9b9c5355e4c0fe6f9028aaa3b1b8beb28a085433 (patch)
treea1c288b01778d4d8e0c661ed0766f149fb2532ba /youtube_dl/downloader
parentd890b4cc0ac6b88daa917a1a791afe7541cd0411 (diff)
Rename error_to_str to error_to_compat_str
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r--youtube_dl/downloader/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/downloader/common.py b/youtube_dl/downloader/common.py
index eb63ccffd..beae8c4d0 100644
--- a/youtube_dl/downloader/common.py
+++ b/youtube_dl/downloader/common.py
@@ -7,7 +7,7 @@ import time
from ..utils import (
encodeFilename,
- error_to_str,
+ error_to_compat_str,
decodeArgument,
format_bytes,
timeconvert,
@@ -186,7 +186,7 @@ class FileDownloader(object):
return
os.rename(encodeFilename(old_filename), encodeFilename(new_filename))
except (IOError, OSError) as err:
- self.report_error('unable to rename file: %s' % error_to_str(err))
+ self.report_error('unable to rename file: %s' % error_to_compat_str(err))
def try_utime(self, filename, last_modified_hdr):
"""Try to set the last-modified time of the given file."""