Skip to content

Commit

Permalink
In Python 3, classes inherit object implicitly
Browse files Browse the repository at this point in the history
No need to inherit (object) explicitly.
  • Loading branch information
DimitriPapadopoulos committed Sep 21, 2023
1 parent 4f0eb48 commit ae620f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fsspec/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
logger = logging.getLogger("fsspec")


class BaseCache(object):
class BaseCache:
"""Pass-though cache: doesn't keep anything, calls every time
Acts as base class for other cachers
Expand Down
2 changes: 1 addition & 1 deletion fsspec/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger = logging.getLogger("fsspec.gui")


class SigSlot(object):
class SigSlot:
"""Signal-slot mixin, for Panel event passing
Include this class in a widget manager's superclasses to be able to
Expand Down
2 changes: 1 addition & 1 deletion fsspec/implementations/smb.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def _share_has_path(path):
return parts > 1


class SMBFileOpener(object):
class SMBFileOpener:
"""writes to remote temporary file, move on commit"""

def __init__(self, path, temp, mode, port=445, block_size=-1, **kwargs):
Expand Down
4 changes: 2 additions & 2 deletions fsspec/transaction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Transaction(object):
class Transaction:
"""Filesystem transaction write context
Gathers files for deferred commit or discard, so that several write
Expand Down Expand Up @@ -41,7 +41,7 @@ def complete(self, commit=True):
self.fs._intrans = False


class FileActor(object):
class FileActor:
def __init__(self):
self.files = []

Expand Down

0 comments on commit ae620f4

Please sign in to comment.