diff options
author | ptmcg <ptmcg@austin.rr.com> | 2019-01-09 17:18:22 -0600 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2019-01-09 17:18:22 -0600 |
commit | d626c99b6288afc4708d72f668b45a29d3263d22 (patch) | |
tree | 4cbeca134437387022e59b71631246e178393aca /examples/getNTPserversNew.py | |
parent | e9ef507bf1fd41d4bd3ffb0c193e5889254ba340 (diff) | |
download | pyparsing-git-d626c99b6288afc4708d72f668b45a29d3263d22.tar.gz |
Add enumerated place holders for strings that invoke str.format(), for Py2 compatibility
Diffstat (limited to 'examples/getNTPserversNew.py')
-rw-r--r-- | examples/getNTPserversNew.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/getNTPserversNew.py b/examples/getNTPserversNew.py index 9d6b4ed..c87c0ae 100644 --- a/examples/getNTPserversNew.py +++ b/examples/getNTPserversNew.py @@ -31,5 +31,5 @@ serverListPage.close() addrs = {}
for srvr,startloc,endloc in timeServerPattern.scanString( serverListHTML ):
- print("{} ({}) - {}".format(srvr.ipAddr, srvr.hostname.strip(), srvr.loc.strip()))
+ print("{0} ({1}) - {2}".format(srvr.ipAddr, srvr.hostname.strip(), srvr.loc.strip()))
addrs[srvr.ipAddr] = srvr.loc
|