[Mumps2Py:] [122] code tweaking |
[ Thread Index |
Date Index
| More lists.mumps2py.org/discuss Archives
]
Revision: 122
Author: pgallot
Date: 2008-02-22 03:19:36 +0000 (Fri, 22 Feb 2008)
Log Message:
-----------
code tweaking
Modified Paths:
--------------
trunk/mumps2py/tokens.py
Modified: trunk/mumps2py/tokens.py
===================================================================
--- trunk/mumps2py/tokens.py 2008-02-21 22:03:08 UTC (rev 121)
+++ trunk/mumps2py/tokens.py 2008-02-22 03:19:36 UTC (rev 122)
@@ -384,8 +384,8 @@
if isinstance(self.__dict__[var], DictType):
dscr = dscr + ' ' + str(var) + ':{'
for (key, val) in self.__dict__[var].items():
- dscr = dscr + str(key)+':'+str(val)+' '
- dscr = dscr+'} '
+ dscr = dscr + str(key) + ':' + str(val) + ' '
+ dscr = dscr + '} '
elif isinstance(self.__dict__[var], ListType):
dscr = "%s %s:%d( " % (dscr, str(var),
len(self.__dict__[var]))
@@ -393,11 +393,11 @@
if isinstance(val, DictType):
dscr = dscr + ' {'
for (key, dval) in val.items():
- dscr = dscr + str(key)+':'+str(dval)+' '
- dscr = dscr+'} '
+ dscr = dscr + str(key) + ':' + str(dval) + ' '
+ dscr = dscr + '} '
else:
dscr = dscr + str(val) + ', '
- dscr = dscr+') '
+ dscr = dscr + ') '
elif self.__dict__[var]: # skip over any 'None' values.
dscr = dscr + ' ' + str(var) + ':' + str(self.__dict__[var])