Skip to content

Commit

Permalink
class X(object) -> class X
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Nov 10, 2021
1 parent 60c6c0e commit a0e5db7
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion tests/davclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def object_to_etree(parent, obj, namespace=""):
raise TypeError("%s is an unsupported type" % type(obj))


class DAVClient(object):
class DAVClient:
def __init__(self, url="http://localhost:8080", logger=None):
"""Initialization"""

Expand Down
4 changes: 2 additions & 2 deletions tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# ========================================================================


class Timing(object):
class Timing:
"""Print timing"""

def __init__(self, name, count=None, fmt=None, count2=None, fmt2=None, stream=None):
Expand Down Expand Up @@ -155,7 +155,7 @@ def run_wsgidav_server(with_auth, with_ssl, provider=None, **kwargs):
# ========================================================================


class WsgiDavTestServer(object):
class WsgiDavTestServer:
"""Run wsgidav in a separate process."""

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/dav_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
PRECONDITION_CODE_PropfindFiniteDepth = "{DAV:}propfind-finite-depth"


class DAVErrorCondition(object):
class DAVErrorCondition:
"""May be embedded in :class:`DAVError` instances to store additional data.
Args:
Expand Down
4 changes: 2 additions & 2 deletions wsgidav/dav_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
# ========================================================================


class _DAVResource(object):
class _DAVResource:
r"""Represents a single existing DAV resource instance.
A resource may be a collection (aka 'folder') or a non-collection (aka
Expand Down Expand Up @@ -1421,7 +1421,7 @@ def resolve(self, script_name, path_info):
# ========================================================================


class DAVProvider(object):
class DAVProvider:
"""Abstract base class for DAV resource providers.
There will be only one DAVProvider instance per share (not per request).
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/interfaces/dav_provider_interface.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-


class IDAVProvider(object):
class IDAVProvider:
"""
+----------------------------------------------------------------------+
| TODO: document this interface |
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/interfaces/domaincontrollerinterface.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-


class IDomainController(object):
class IDomainController:
"""
+----------------------------------------------------------------------+
| TODO: document this interface |
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/interfaces/lockmanagerinterface.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-


class LockManagerInterface(object):
class LockManagerInterface:
"""
+----------------------------------------------------------------------+
| TODO: document this interface |
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/interfaces/propertymanagerinterface.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-


class PropertyManagerInterface(object):
class PropertyManagerInterface:
"""
+----------------------------------------------------------------------+
| TODO: document this interface |
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/lock_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def validate_lock(lock):
# ========================================================================
# LockManager
# ========================================================================
class LockManager(object):
class LockManager:
"""
Implements locking functionality using a custom storage layer.
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/lock_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# ========================================================================
# LockStorageDict
# ========================================================================
class LockStorageDict(object):
class LockStorageDict:
"""
An in-memory lock manager storage implementation using a dictionary.
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/lock_storage_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
_logger = util.get_module_logger(__name__)


class LockStorageRedis(object):
class LockStorageRedis:
"""
A (high performance?) lock manager implementation using redis!
"""
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__docformat__ = "reStructuredText"


class BaseMiddleware(object):
class BaseMiddleware:
"""Abstract base middleware class (optional).
Note: this is a convenience class, that *may* be used to implement WsgiDAV
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/prop_man/couch_property_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# ============================================================================


class CouchPropertyManager(object):
class CouchPropertyManager:
"""Implements a property manager based on CouchDB."""

def __init__(self, options):
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/prop_man/mongo_property_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def decode_mongo_key(key):
# ============================================================================
# MongoPropertyManager
# ============================================================================
class MongoPropertyManager(object):
class MongoPropertyManager:
"""Implements a property manager based on MongoDB."""

def __init__(self, options):
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/prop_man/property_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# ========================================================================
# PropertyManager
# ========================================================================
class PropertyManager(object):
class PropertyManager:
"""
An in-memory property manager implementation using a dictionary.
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/request_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# ========================================================================
# RequestServer
# ========================================================================
class RequestServer(object):
class RequestServer:
def __init__(self, dav_provider):
self._davProvider = dav_provider
self.allow_propfind_infinite = True
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/rw_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# ---------------


class ReadWriteLock(object):
class ReadWriteLock:
"""Read-Write lock class. A read-write lock differs from a standard
threading.RLock() by allowing multiple threads to simultaneously hold a
read lock, while allowing only a single thread to hold a write lock at the
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/samples/dav_provider_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def get_content(self):
# ============================================================================
# Resolvers
# ============================================================================
class DAVResolver(object):
class DAVResolver:
"""Return a DAVResource object for a path (None, if not found)."""

def __init__(self, parent_resolver, name):
Expand Down
4 changes: 2 additions & 2 deletions wsgidav/stream_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def begin_write(self, contentType=None):
# ============================================================================


class FileLikeQueue(object):
class FileLikeQueue:
"""A queue for chunks that behaves like a file-like.
read() and write() are typically called from different threads.
Expand Down Expand Up @@ -122,7 +122,7 @@ def close(self):
# ============================================================================


class StreamingFile(object):
class StreamingFile:
"""A file object wrapped around an iterator / data stream."""

def __init__(self, data_stream):
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def fail(value, context_info=None, src_exception=None, err_condition=None):
# ========================================================================
# SubAppStartResponse
# ========================================================================
class SubAppStartResponse(object):
class SubAppStartResponse:
def __init__(self):
self.__status = ""
self.__response_headers = []
Expand Down
2 changes: 1 addition & 1 deletion wsgidav/wsgidav_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _check_config(config):
# ========================================================================
# WsgiDAVApp
# ========================================================================
class WsgiDAVApp(object):
class WsgiDAVApp:
def __init__(self, config):

self.config = copy.deepcopy(DEFAULT_CONFIG)
Expand Down

0 comments on commit a0e5db7

Please sign in to comment.