Fix PEP8 issue E713
This commit is contained in:
parent
b89a938687
commit
83e865a370
@ -247,7 +247,7 @@ else:
|
|||||||
userhome = compat_getenv('HOME')
|
userhome = compat_getenv('HOME')
|
||||||
elif 'USERPROFILE' in os.environ:
|
elif 'USERPROFILE' in os.environ:
|
||||||
userhome = compat_getenv('USERPROFILE')
|
userhome = compat_getenv('USERPROFILE')
|
||||||
elif not 'HOMEPATH' in os.environ:
|
elif 'HOMEPATH' not in os.environ:
|
||||||
return path
|
return path
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
@ -14,7 +14,7 @@ class ExecAfterDownloadPP(PostProcessor):
|
|||||||
|
|
||||||
def run(self, information):
|
def run(self, information):
|
||||||
cmd = self.exec_cmd
|
cmd = self.exec_cmd
|
||||||
if not '{}' in cmd:
|
if '{}' not in cmd:
|
||||||
cmd += ' {}'
|
cmd += ' {}'
|
||||||
|
|
||||||
cmd = cmd.replace('{}', shlex_quote(information['filepath']))
|
cmd = cmd.replace('{}', shlex_quote(information['filepath']))
|
||||||
|
@ -79,7 +79,7 @@ def update_self(to_screen, verbose):
|
|||||||
to_screen(compat_str(traceback.format_exc()))
|
to_screen(compat_str(traceback.format_exc()))
|
||||||
to_screen('ERROR: can\'t obtain versions info. Please try again later.')
|
to_screen('ERROR: can\'t obtain versions info. Please try again later.')
|
||||||
return
|
return
|
||||||
if not 'signature' in versions_info:
|
if 'signature' not in versions_info:
|
||||||
to_screen('ERROR: the versions file is not signed or corrupted. Aborting.')
|
to_screen('ERROR: the versions file is not signed or corrupted. Aborting.')
|
||||||
return
|
return
|
||||||
signature = versions_info['signature']
|
signature = versions_info['signature']
|
||||||
|
@ -1024,7 +1024,7 @@ def smuggle_url(url, data):
|
|||||||
|
|
||||||
|
|
||||||
def unsmuggle_url(smug_url, default=None):
|
def unsmuggle_url(smug_url, default=None):
|
||||||
if not '#__youtubedl_smuggle' in smug_url:
|
if '#__youtubedl_smuggle' not in smug_url:
|
||||||
return smug_url, default
|
return smug_url, default
|
||||||
url, _, sdata = smug_url.rpartition('#')
|
url, _, sdata = smug_url.rpartition('#')
|
||||||
jsond = compat_parse_qs(sdata)['__youtubedl_smuggle'][0]
|
jsond = compat_parse_qs(sdata)['__youtubedl_smuggle'][0]
|
||||||
|
Loading…
Reference in New Issue
Block a user