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
7d0b68ec
Commit
7d0b68ec
authored
May 20, 2010
by
Tiago Peixoto
Browse files
Fix bug in Graph.load() with file-like objects
This fixes a small typo bug, which prevented loading from file-like objects.
parent
00238cfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/core.py
View file @
7d0b68ec
...
...
@@ -804,7 +804,7 @@ class Graph(object):
if
isinstance
(
file_name
,
str
):
props
=
self
.
__graph
.
ReadFromFile
(
file_name
,
None
,
file_format
)
else
:
props
=
self
.
__graph
.
ReadFromFile
(
""
,
file_name
,
format
)
props
=
self
.
__graph
.
ReadFromFile
(
""
,
file_name
,
file_
format
)
for
name
,
prop
in
props
[
0
].
iteritems
():
self
.
vertex_properties
[
name
]
=
PropertyMap
(
prop
,
self
,
"v"
)
for
name
,
prop
in
props
[
1
].
iteritems
():
...
...
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