Merge pull request #313 from edx/cale/use-super-for-calling-parent-__init__-methods
Use super for calling parent __init__ methods
This commit is contained in:
@@ -256,7 +256,7 @@ class MongoModuleStore(ModuleStoreBase):
|
||||
user=None, password=None, request_cache=None,
|
||||
metadata_inheritance_cache_subsystem=None, **kwargs):
|
||||
|
||||
ModuleStoreBase.__init__(self)
|
||||
super(MongoModuleStore, self).__init__()
|
||||
|
||||
self.collection = pymongo.connection.Connection(
|
||||
host=host,
|
||||
|
||||
@@ -265,7 +265,7 @@ class XMLModuleStore(ModuleStoreBase):
|
||||
course_dirs: If specified, the list of course_dirs to load. Otherwise,
|
||||
load all course dirs
|
||||
"""
|
||||
ModuleStoreBase.__init__(self)
|
||||
super(XMLModuleStore, self).__init__()
|
||||
|
||||
self.data_dir = path(data_dir)
|
||||
self.modules = defaultdict(dict) # course_id -> dict(location -> XModuleDescriptor)
|
||||
|
||||
@@ -25,7 +25,7 @@ WATCH_DIRS = [os.path.abspath(os.path.normpath(dir)) for dir in WATCH_DIRS]
|
||||
class DjangoEventHandler(FileSystemEventHandler):
|
||||
|
||||
def __init__(self, process):
|
||||
FileSystemEventHandler.__init__(self)
|
||||
super(DjangoEventHandler, self).__init__()
|
||||
|
||||
self.process = process
|
||||
|
||||
|
||||
Reference in New Issue
Block a user