git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python3 - 2to3 + miscell obvious tweaks
[sfa.git]
/
sfa
/
examples
/
miniclient.py
diff --git
a/sfa/examples/miniclient.py
b/sfa/examples/miniclient.py
index
2366c78
..
c588b5f
100755
(executable)
--- a/
sfa/examples/miniclient.py
+++ b/
sfa/examples/miniclient.py
@@
-3,7
+3,7
@@
# this is designed to use a totally empty new directory
# so we demonstrate how to bootstrap the whole thing
# this is designed to use a totally empty new directory
# so we demonstrate how to bootstrap the whole thing
-from __future__ import print_function
+
# init logging on console
import logging
# init logging on console
import logging
@@
-70,7
+70,7
@@
def get_version(url):
server_proxy = bootstrap.server_proxy_simple(url)
server_version = server_proxy.GetVersion()
print("miniclient: GetVersion at %s returned:" % (url))
server_proxy = bootstrap.server_proxy_simple(url)
server_version = server_proxy.GetVersion()
print("miniclient: GetVersion at %s returned:" % (url))
- for (k, v) in server_version.ite
rite
ms():
+ for (k, v) in server_version.items():
print("miniclient: \tversion[%s]=%s" % (k, truncate(v)))
# version_dict = {'type': 'SFA', 'version': '1', }
print("miniclient: \tversion[%s]=%s" % (k, truncate(v)))
# version_dict = {'type': 'SFA', 'version': '1', }