From 417f4a46059d2e6f9e3ff0f020b33eb285ac880f Mon Sep 17 00:00:00 2001 From: Hidenori Date: Wed, 10 Jun 2020 20:20:29 -0400 Subject: [PATCH] Convert OverlaySurvey.py to Python 3 --- scripts/OverlaySurvey.py | 2 +- scripts/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/OverlaySurvey.py b/scripts/OverlaySurvey.py index 441d95b912..c487f17a97 100644 --- a/scripts/OverlaySurvey.py +++ b/scripts/OverlaySurvey.py @@ -180,7 +180,7 @@ def run_survey(args): peer_list.append(key) if nx.is_empty(G): - print "Graph is empty!" + print("Graph is empty!") sys.exit(0) write_graph_stats(G, args.graphStats) diff --git a/scripts/README.md b/scripts/README.md index afdf5640b5..435b1e6fc9 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -7,7 +7,7 @@ This folder is for storing any scripts that may be helpful for using stellar-cor ### Overlay survey - Name - `OverlaySurvey.py` - Description - A Python script that will walk the network using the Overlay survey mechanism to gather connection information. See [admin](./../docs/software/admin.md#overlay-topology-survey) for more information on the overlay survey. The survey will use the peers of the initial node to seed the survey. -- Usage - Ex. `python OverlaySurvey.py -gs gs.json survey -n http://127.0.0.1:11626 -d 50 -sr sr.json -gmlw gmlw.graphml` to run the survey or `python OverlaySurvey.py -gs gs.json analyze -gmla gmla.graphml` to analyze an existing graph. +- Usage - Ex. `python3 OverlaySurvey.py -gs gs.json survey -n http://127.0.0.1:11626 -d 50 -sr sr.json -gmlw gmlw.graphml` to run the survey or `python3 OverlaySurvey.py -gs gs.json analyze -gmla gmla.graphml` to analyze an existing graph. - `-gs GRAPHSTATS`, `--graphStats GRAPHSTATS` - output file for graph stats - sub command `survey` - run survey and analyze - `-n NODE`, `--node NODE` - address of initial survey node