Skip to content

Commit 8fc7d56

Browse files
committed
fix: lint errors
1 parent 0453ec8 commit 8fc7d56

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

core/utils/file_utils.py

+2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,10 @@ def extract_part_of_text(text, key_word):
190190

191191
@staticmethod
192192
def unpack_tar(file_path, dest_dir):
193+
# noinspection PyBroadException
193194
try:
194195
tar_file = tarfile.open(file_path, 'r:gz')
195196
tar_file.extractall(dest_dir)
197+
# pylint: disable=broad-except
196198
except Exception:
197199
Log.debug('Failed to unpack .tar file {0}'.format(file_path))

products/nativescript/preview_helpers.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,17 @@ def install_playground_app(device_info, platform):
5050
elif platform is Platform.ANDROID:
5151
Adb.install(package_android, device_info.id)
5252

53+
# noinspection PyUnresolvedReferences
5354
@staticmethod
5455
def get_url(output):
55-
"""Get preview URL form tns log.This is the url you need to load in Preview app
56-
in order to see and sync your project"""
56+
"""
57+
Get preview URL form tns log.
58+
This is the url you need to load in Preview app in order to see and sync your project.
59+
"""
5760
url = re.findall(r"(nsplay[^\s']+)", output)[0]
5861
if Settings.PYTHON_VERSION < 3:
5962
import urllib
63+
# pylint: disable=no-member
6064
url = urllib.unquote(url)
6165
else:
6266
from urllib.parse import unquote

0 commit comments

Comments
 (0)