Skip to content

Commit 95493a3

Browse files
author
Saimon Michelson
committed
update for flake8 and pylint
1 parent 2f011d9 commit 95493a3

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

cterasdk/asynchronous/core/files/browser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ async def download(self, path, objects=None, destination=None):
4545
return await Download(io.handle_many if properties.is_dir else io.handle, self._core,
4646
properties.path, properties, objects, destination).a_execute()
4747

48-
4948
async def listdir(self, path=None, include_deleted=False):
5049
"""
5150
List directory contents.

cterasdk/cio/core/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def get_parameter(self):
376376
else f'share/{self._receiver.invite}'
377377
)
378378
return uid, encode_request_parameter(param)
379-
return self.path.relative_encode,
379+
return self.path.relative_encode, # pylint: disable=trailing-comma-tuple
380380

381381
def _before_command(self):
382382
raise_or_suppress_access_error(self._receiver, self.path)
@@ -411,7 +411,7 @@ def __init__(self, function, receiver, path, properties, objects, destination):
411411
self.destination = destination
412412

413413
def get_parameter(self):
414-
return commonfs.determine_directory_and_filename(self.path.reference,self.objects,
414+
return commonfs.determine_directory_and_filename(self.path.reference, self.objects,
415415
self.destination, self.properties.is_dir)
416416

417417
def _before_command(self):

cterasdk/core/files/browser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ def device_config(self, device, destination=None):
330330
:raises cterasdk.exceptions.io.core.OpenError: Raised on error obtaining file handle.
331331
"""
332332
destination = destination if destination is not None else f'{commonfs.downloads()}/{device}.xml'
333-
return Download(io.handle, self._core, f'backups/{device}/Device Configuration/db.xml', destination).execute()
333+
return Download(io.handle, self._core,
334+
f'backups/{device}/Device Configuration/db.xml', destination=destination).execute()
334335

335336

336337
class InvitationBrowser:

0 commit comments

Comments
 (0)