make it python3 safe
authorrobin
Tue, 29 Oct 2019 16:44:10 +0000
changeset 16 bba666ee6084
parent 15 b6b247835014
child 17 6a87ee4b3092
make it python3 safe
rl_ci_tools.py
--- a/rl_ci_tools.py	Thu Oct 17 09:15:53 2019 +0100
+++ b/rl_ci_tools.py	Tue Oct 29 16:44:10 2019 +0000
@@ -227,7 +227,7 @@
     if cmd=='env':
         print('Environment')
         print('===========')
-        I = list(sorted(os.environ.iteritems()))
+        I = list(sorted(os.environ.items()))
         i = max([len(i[0]) for i in I])
         print(('{:<%d}  {}' % i).format('Key','Value'))
         fmt  = '{:<%d} = {}' % i