fix support for Python 3.7
This commit is contained in:
parent
cd1cbfde30
commit
254a229401
|
@ -9,7 +9,8 @@ NPM_URL = 'https://registry.npmjs.org/%s'
|
||||||
|
|
||||||
def configure(config):
|
def configure(config):
|
||||||
global NPM_URL
|
global NPM_URL
|
||||||
if url := config.get('registry'):
|
url = config.get('registry')
|
||||||
|
if url:
|
||||||
NPM_URL = f'{url.rstrip("/")}/%s'
|
NPM_URL = f'{url.rstrip("/")}/%s'
|
||||||
|
|
||||||
async def get_first_1k(url):
|
async def get_first_1k(url):
|
||||||
|
|
Loading…
Reference in New Issue