From 91a47d61c5a789715e9a2a9c23d3c2d3f05f1440 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 4 Jun 2023 14:06:04 -0700 Subject: [PATCH] update pylint (#28395) * update pylint * update config * fix old-commit-hash: e276d2a417a5133fb91c93b2ef30df68a7d5f225 --- .pylintrc | 4 ++-- poetry.lock | 4 ++-- system/sensord/rawgps/rawgpsd.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pylintrc b/.pylintrc index 58988c5d74..ae91dd3d7c 100644 --- a/.pylintrc +++ b/.pylintrc @@ -3,7 +3,7 @@ # A comma-separated list of package or module names from where C extensions may # be loaded. Extensions are loading into the active Python interpreter and may # run arbitrary code -extension-pkg-whitelist=scipy,cereal.messaging.messaging_pyx,PyQt5,av +extension-pkg-whitelist=scipy,cereal.messaging.messaging_pyx,PyQt5,av,pycurl # Add files or directories to the blacklist. They should be base names, not # paths. @@ -466,4 +466,4 @@ check-str-concat-over-line-jumps=yes # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions= diff --git a/poetry.lock b/poetry.lock index 170647cc9d..4d8a006b62 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bb48f48023b4392f9c94321829a88824908623c6a1ca7443e5534ed845e1093e -size 638741 +oid sha256:1661562b0d58e4808faa23d86c5a0b3d174cf9d49511ed35dc1dc502def0865a +size 638789 diff --git a/system/sensord/rawgps/rawgpsd.py b/system/sensord/rawgps/rawgpsd.py index a5eafb268d..46f5cf83c9 100755 --- a/system/sensord/rawgps/rawgpsd.py +++ b/system/sensord/rawgps/rawgpsd.py @@ -117,11 +117,11 @@ def download_and_inject_assistance(): # download assistance try: c = pycurl.Curl() - c.setopt(c.URL, assistance_url) - c.setopt(c.NOBODY, 1) + c.setopt(pycurl.URL, assistance_url) + c.setopt(pycurl.NOBODY, 1) c.setopt(pycurl.CONNECTTIMEOUT, 2) c.perform() - bytes_n = c.getinfo(c.CONTENT_LENGTH_DOWNLOAD) + bytes_n = c.getinfo(pycurl.CONTENT_LENGTH_DOWNLOAD) c.close() if bytes_n > 1e5: cloudlog.error("Qcom assistance data larger than expected")