mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
go: style: unify indentation etc
This commit is contained in:
parent
35a19f30ae
commit
4ad3bdb95d
2 changed files with 37 additions and 37 deletions
|
@ -5,7 +5,7 @@ from lxml import html
|
||||||
|
|
||||||
from nvchecker.api import (
|
from nvchecker.api import (
|
||||||
VersionResult, Entry, AsyncCache, KeyManager,
|
VersionResult, Entry, AsyncCache, KeyManager,
|
||||||
session, GetVersionError, HTTPError
|
session, GetVersionError,
|
||||||
)
|
)
|
||||||
|
|
||||||
GO_PKG_URL = 'https://pkg.go.dev/{pkg}?tab=versions'
|
GO_PKG_URL = 'https://pkg.go.dev/{pkg}?tab=versions'
|
||||||
|
|
|
@ -5,9 +5,9 @@ import pytest
|
||||||
|
|
||||||
from nvchecker.api import HTTPError
|
from nvchecker.api import HTTPError
|
||||||
|
|
||||||
lxml_available = True
|
|
||||||
try:
|
try:
|
||||||
import lxml
|
import lxml
|
||||||
|
lxml_available = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
lxml_available = False
|
lxml_available = False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue