Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d75a901a
Commit
d75a901a
authored
Jul 01, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use super for calling parent __init__ methods
parent
573abb80
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
common/lib/xmodule/xmodule/modulestore/mongo/base.py
+1
-1
common/lib/xmodule/xmodule/modulestore/xml.py
+1
-1
scripts/run_watch_data.py
+1
-1
No files found.
common/lib/xmodule/xmodule/modulestore/mongo/base.py
View file @
d75a901a
...
...
@@ -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
,
...
...
common/lib/xmodule/xmodule/modulestore/xml.py
View file @
d75a901a
...
...
@@ -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)
...
...
scripts/run_watch_data.py
View file @
d75a901a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment