0
0
Fork 0

Improve formatting

main
Philipp Hagemeister 2013-07-02 08:35:39 +02:00
parent 2e1b3afeca
commit deacef651f
1 changed files with 4 additions and 2 deletions

View File

@ -582,7 +582,9 @@ def _real_main(argv=None):
if opts.verbose: if opts.verbose:
ydl.to_screen(u'[debug] youtube-dl version ' + __version__) ydl.to_screen(u'[debug] youtube-dl version ' + __version__)
try: try:
sp = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, sp = subprocess.Popen(
['git', 'rev-parse', '--short', 'HEAD'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
cwd=os.path.dirname(os.path.abspath(__file__))) cwd=os.path.dirname(os.path.abspath(__file__)))
out, err = sp.communicate() out, err = sp.communicate()
out = out.decode().strip() out = out.decode().strip()