Fix syntax error in Python 3: u'' -> ''. Also add .gitignore.

This commit is contained in:
chebee7i 2013-09-09 12:55:54 -05:00
parent 9be233d50f
commit 2a03630c0a
2 changed files with 7 additions and 1 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
*.pyc
__pycache__
*~
.DS_Store
build/*

View File

@ -295,7 +295,7 @@ def graph_from_edges(edge_list, node_prefix='', directed=False):
return graph
def graph_from_adjacency_matrix(matrix, node_prefix=u'', directed=False):
def graph_from_adjacency_matrix(matrix, node_prefix='', directed=False):
"""Creates a basic graph out of an adjacency matrix.
The matrix has to be a list of rows of values