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
f64614b8
Commit
f64614b8
authored
Jun 12, 2012
by
ichuang
Committed by
Matthew Mongeau
Jun 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix correctmap set_dict bug - make __getitem__ call self.cmap.__getitem__
parent
3e2ef6b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
common/lib/capa/correctmap.py
+3
-2
No files found.
common/lib/capa/correctmap.py
View file @
f64614b8
...
@@ -19,12 +19,13 @@ class CorrectMap(object):
...
@@ -19,12 +19,13 @@ class CorrectMap(object):
'''
'''
def
__init__
(
self
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
self
.
cmap
=
dict
()
# start with empty dict
self
.
cmap
=
dict
()
# start with empty dict
self
.
__getitem__
=
self
.
cmap
.
__getitem__
self
.
__iter__
=
self
.
cmap
.
__iter__
self
.
items
=
self
.
cmap
.
items
self
.
items
=
self
.
cmap
.
items
self
.
keys
=
self
.
cmap
.
keys
self
.
keys
=
self
.
cmap
.
keys
self
.
set
(
*
args
,
**
kwargs
)
self
.
set
(
*
args
,
**
kwargs
)
def
__getitem__
(
self
,
*
args
,
**
kwargs
):
return
self
.
cmap
.
__getitem
(
*
args
,
**
kwargs
)
def
__iter__
(
self
):
def
__iter__
(
self
):
return
self
.
cmap
.
__iter__
()
return
self
.
cmap
.
__iter__
()
...
...
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