Commit d510368f authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix further Python 2 issues

parent 70bf7408
Pipeline #204 failed with stage
in 4545 minutes and 27 seconds
......@@ -14,6 +14,10 @@
import sys, os
if sys.version_info < (3,):
# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
# absolute, like shown here.
......@@ -2261,7 +2261,7 @@ class Graph(object):
given by ``deg``, which can be any of ``"in"``, ``"out"``, or ``"total"``.
If provided, ``weight`` should be an edge :class:`~graph_tool.PropertyMap`
containing the edge weights which should be summed."""
pmap = self.__graph.degree_map(deg, _prop("e", self, weight))
pmap = self.__graph.degree_map(_to_str(deg), _prop("e", self, weight))
return PropertyMap(pmap, self, "v")
# I/O operations
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment