mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Pip module: fixing issue with python 2.4 support
Python 2.4.3 returns: TypeError: expected character buffer object startswith is expecting only a string instead of a tuple like newer versions allow.
This commit is contained in:
parent
36c23cd895
commit
c12e2b53e3
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ def main():
|
|||
# Ok, we will reconstruct the option string
|
||||
extra_args = ' '.join(args_list)
|
||||
|
||||
if name.startswith(('.','/')):
|
||||
if name.startswith('.') or name.startswith('/'):
|
||||
is_local_path = True
|
||||
# for tarball or vcs source, applying --use-mirrors doesn't really make sense
|
||||
is_package = is_vcs or is_tar or is_local_path # just a shortcut for bool
|
||||
|
|
Loading…
Reference in a new issue