aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-08-28 12:57:10 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-08-28 12:57:10 +0200
commitc496ca96e7639e5dd0020074b7ada18c2bd4ae3e (patch)
tree0d97ce8d0b6d4bce77d1478e8708ccf155b38b74 /youtube_dl/__init__.py
parentce6a696e4d964aeb27de46a31a899b28d7ca7754 (diff)
Fix platform name in Python 2 with --verbose (Closes #1228)
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index bc6a6d180..b33a18a26 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -45,6 +45,7 @@ import sys
import warnings
import platform
+
from .utils import *
from .update import update_self
from .version import __version__
@@ -611,7 +612,7 @@ def _real_main(argv=None):
sys.exc_clear()
except:
pass
- sys.stderr.write(u'[debug] Python version %s - %s' %(platform.python_version(), platform.platform()) + u'\n')
+ sys.stderr.write(u'[debug] Python version %s - %s' %(platform.python_version(), platform_name()) + u'\n')
sys.stderr.write(u'[debug] Proxy map: ' + str(proxy_handler.proxies) + u'\n')
ydl.add_default_info_extractors()