From 2a03630c0a77103f038b5a0fa52b598cc9bc0e8f Mon Sep 17 00:00:00 2001 From: chebee7i Date: Mon, 9 Sep 2013 12:55:54 -0500 Subject: [PATCH] Fix syntax error in Python 3: u'' -> ''. Also add .gitignore. --- .gitignore | 6 ++++++ pydot/__init__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..02e139d --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.pyc +__pycache__ +*~ +.DS_Store +build/* + diff --git a/pydot/__init__.py b/pydot/__init__.py index 7894f53..fa525c9 100644 --- a/pydot/__init__.py +++ b/pydot/__init__.py @@ -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