Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
abfc17cf
Commit
abfc17cf
authored
Jan 23, 2020
by
Tiago Peixoto
Browse files
Fix bug in PropertyDict.items()
parent
ebe35be5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
abfc17cf
...
...
@@ -1508,9 +1508,9 @@ class PropertyDict(object):
return
self
.
keys
()
def
iterkeys
(
self
):
for
k
in
self
.
properties
.
iter
keys
():
for
k
in
self
.
properties
.
keys
():
if
k
[
0
]
==
self
.
t
:
yield
k
[
0
]
yield
k
[
1
]
def
items
(
self
):
for
k
,
v
in
self
.
properties
.
items
():
...
...
@@ -1527,7 +1527,7 @@ class PropertyDict(object):
yield
k
[
1
],
v
def
itervalues
(
self
):
for
k
,
v
in
self
.
properties
.
iter
items
():
for
k
,
v
in
self
.
properties
.
items
():
if
k
[
0
]
==
self
.
t
:
yield
v
...
...
Write
Preview
Supports
Markdown
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