aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-07-02 08:35:39 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-07-02 08:35:39 +0200
commitdeacef651f7ca9e206fdd2b962106b943d8cd381 (patch)
tree05497f289adc91cc065da271650b7c0a50e87fd9 /youtube_dl/__init__.py
parent2e1b3afeca99278baa0ffa7237ca8628f551e268 (diff)
Improve formatting
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index 7abe52255..d4a005f62 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -582,8 +582,10 @@ def _real_main(argv=None):
if opts.verbose:
ydl.to_screen(u'[debug] youtube-dl version ' + __version__)
try:
- sp = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'], stdout=subprocess.PIPE, stderr=subprocess.PIPE,
- cwd=os.path.dirname(os.path.abspath(__file__)))
+ sp = subprocess.Popen(
+ ['git', 'rev-parse', '--short', 'HEAD'],
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE,
+ cwd=os.path.dirname(os.path.abspath(__file__)))
out, err = sp.communicate()
out = out.decode().strip()
if re.match('[0-9a-f]+', out):