mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
Support parse_requirements out of pip < 10 and >= 10
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user