changeset 24:c88a794d9a22 traipse_dev

Too many deletes again. Tested on Linux.
author sirebral
date Sat, 25 Jul 2009 21:08:48 -0500
parents 551cd440acce
children 69149263026d
files orpg/orpg_version.py orpg/xmltramp.py
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/orpg/orpg_version.py	Sat Jul 25 21:05:18 2009 -0500
+++ b/orpg/orpg_version.py	Sat Jul 25 21:08:48 2009 -0500
@@ -4,7 +4,7 @@
 #BUILD NUMBER FORMAT: "YYMMDD-##" where ## is the incremental daily build index (if needed)
 DISTRO = "Traipse Dev"
 DIS_VER = "Grumpy Goblin"
-BUILD = "090725-04"
+BUILD = "090725-05"
 
 # This version is for network capability.
 PROTOCOL_VERSION = "1.2"
--- a/orpg/xmltramp.py	Sat Jul 25 21:05:18 2009 -0500
+++ b/orpg/xmltramp.py	Sat Jul 25 21:08:48 2009 -0500
@@ -64,7 +64,8 @@
         out += '>'
         if recursive:
             content = 0
-            for x in self._dir: if isinstance(x, Element): content = 1
+            for x in self._dir: 
+                if isinstance(x, Element): content = 1
             pad = '\n' + ('\t' * recursive)
             for x in self._dir:
                 if multiline and content: out +=  pad
@@ -72,7 +73,8 @@
                 elif isinstance(x, Element): out += x.__repr__(recursive+1, multiline, inprefixes.copy())
                 else: raise TypeError, "I wasn't expecting "+`x`+"."
             if multiline and content: out += '\n' + ('\t' * (recursive-1))
-        else: if self._dir: out += '...'
+        else: 
+            if self._dir: out += '...'
         out += '</'+qname(self._name, inprefixes)+'>'
         return out