summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sproul <micsproul@gmail.com>2014-06-28 09:26:45 +1000
committerysitu <ysitu@users.noreply.github.com>2014-07-15 15:29:59 -0400
commitef37001c97f83d39e8e9998a8f7d1d6db75b1e0b (patch)
treeba79fbc58c8baedb80bfdd2910080c7fe6000972
parenta3bc59fcb27e1fc0590454cbb0abf0cb38e8984d (diff)
downloadnetworkx-ef37001c97f83d39e8e9998a8f7d1d6db75b1e0b.tar.gz
Remove Python 3 incompatible print statement
-rw-r--r--examples/graph/degree_sequence.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/graph/degree_sequence.py b/examples/graph/degree_sequence.py
index c3e2b49a..6acc394e 100644
--- a/examples/graph/degree_sequence.py
+++ b/examples/graph/degree_sequence.py
@@ -16,7 +16,7 @@ __revision__ = "$Revision: 503 $"
from networkx import *
z=[5,3,3,3,3,2,2,2,1,1,1]
-print is_valid_degree_sequence(z)
+print(is_valid_degree_sequence(z))
print("Configuration model")
G=configuration_model(z) # configuration model
@@ -32,5 +32,3 @@ for d in degree_sequence:
print("degree #nodes")
for d in hist:
print('%d %d' % (d,hist[d]))
-
-