aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-02-26 23:53:56 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-02-26 23:53:56 +0100
commitc9ed14e6d6834b61171849a2fefa750e2f7a58b8 (patch)
treecca730a119d97ac270e78989ab62657f2eb62f2e /youtube_dl/__init__.py
parent1ad85e5061936cdf74e03a8875055df02bcb3769 (diff)
Move imports to top (Closes #283)
Diffstat (limited to 'youtube_dl/__init__.py')
-rwxr-xr-xyoutube_dl/__init__.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index ffd837c32..ef48b7ecb 100755
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -22,8 +22,10 @@ __version__ = '2012.01.08b'
UPDATE_URL = 'https://raw.github.com/rg3/youtube-dl/master/youtube-dl'
+
import cookielib
import datetime
+import getpass
import gzip
import htmlentitydefs
import HTMLParser
@@ -31,9 +33,11 @@ import httplib
import locale
import math
import netrc
+import optparse
import os
import os.path
import re
+import shlex
import socket
import string
import subprocess
@@ -4205,11 +4209,6 @@ def updateSelf(downloader, filename):
downloader.to_screen(u'Updated youtube-dl. Restart youtube-dl to use the new version.')
def parseOpts():
- # Deferred imports
- import getpass
- import optparse
- import shlex
-
def _readOptions(filename_bytes):
try:
optionf = open(filename_bytes)