mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
fix typos
This commit is contained in:
parent
48f82e819b
commit
f2aa4cad20
4 changed files with 7 additions and 5 deletions
2
.typos.toml
Normal file
2
.typos.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[default.extend-words]
|
||||||
|
mis = "mis"
|
|
@ -701,7 +701,7 @@ repo
|
||||||
|
|
||||||
subrepo
|
subrepo
|
||||||
Check the version in this subrepo. This field is optional.
|
Check the version in this subrepo. This field is optional.
|
||||||
When ommited all subrepos are queried.
|
When omitted all subrepos are queried.
|
||||||
|
|
||||||
This source supports :ref:`list options`.
|
This source supports :ref:`list options`.
|
||||||
|
|
||||||
|
@ -731,7 +731,7 @@ repo
|
||||||
Should be one of ``addon`` or ``package``. Packages in ``addon2-1.xml`` use ``addon`` and packages in ``repository2-1.xml`` use ``package``.
|
Should be one of ``addon`` or ``package``. Packages in ``addon2-1.xml`` use ``addon`` and packages in ``repository2-1.xml`` use ``package``.
|
||||||
|
|
||||||
channel
|
channel
|
||||||
Choose the target channel from one of ``stable``, ``beta``, ``dev`` or ``canary``. This option also accepts a comma-seperated list to pick from multiple channels. For example, the latest unstable version is picked with ``beta,dev,canary``. The default is ``stable``.
|
Choose the target channel from one of ``stable``, ``beta``, ``dev`` or ``canary``. This option also accepts a comma-separated list to pick from multiple channels. For example, the latest unstable version is picked with ``beta,dev,canary``. The default is ``stable``.
|
||||||
|
|
||||||
host_os
|
host_os
|
||||||
Choose the target OS for the tracked package from one of ``linux``, ``macosx``, ``windows``. The default is ``linux``. For OS-independent packages (e.g., Java JARs), this field is ignored.
|
Choose the target OS for the tracked package from one of ``linux``, ``macosx``, ``windows``. The default is ``linux``. For OS-independent packages (e.g., Java JARs), this field is ignored.
|
||||||
|
|
|
@ -27,7 +27,7 @@ class Response:
|
||||||
self.body = body
|
self.body = body
|
||||||
|
|
||||||
def json(self):
|
def json(self):
|
||||||
'''Convert reponse content to JSON.'''
|
'''Convert response content to JSON.'''
|
||||||
return _json.loads(self.body.decode('utf-8'))
|
return _json.loads(self.body.decode('utf-8'))
|
||||||
|
|
||||||
class BaseSession:
|
class BaseSession:
|
||||||
|
@ -95,7 +95,7 @@ class BaseSession:
|
||||||
tries = i, exc_info = e)
|
tries = i, exc_info = e)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
raise Exception('shoud not reach')
|
raise Exception('should not reach')
|
||||||
|
|
||||||
async def request_impl(
|
async def request_impl(
|
||||||
self, url: str, *,
|
self, url: str, *,
|
||||||
|
|
|
@ -135,7 +135,7 @@ async def get_version(
|
||||||
strip_release = conf.get('strip_release', False)
|
strip_release = conf.get('strip_release', False)
|
||||||
|
|
||||||
if srcpkg and pkg:
|
if srcpkg and pkg:
|
||||||
raise GetVersionError('Setting both srcpkg and pkg is ambigious')
|
raise GetVersionError('Setting both srcpkg and pkg is ambiguous')
|
||||||
elif not srcpkg and not pkg:
|
elif not srcpkg and not pkg:
|
||||||
pkg = name
|
pkg = name
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue