mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Support parse_requirements out of pip < 10 and >= 10
This commit is contained in:
parent
f94959d120
commit
ed7a7e5f7b
@ -4,7 +4,11 @@ import json
|
||||
import os
|
||||
|
||||
from django.conf import settings
|
||||
from pip._internal.req import parse_requirements
|
||||
|
||||
try:
|
||||
from pip._internal.req import parse_requirements
|
||||
except ImportError:
|
||||
from pip.req import parse_requirements
|
||||
|
||||
|
||||
def test_python_and_js_licenses():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user