# HG changeset patch # User sirebral # Date 1248574128 18000 # Node ID c88a794d9a22f1b8e48de95c377ebc93b8c05593 # Parent 551cd440acced84554b8f7aff23ff3830520b8bd Too many deletes again. Tested on Linux. diff -r 551cd440acce -r c88a794d9a22 orpg/orpg_version.py --- 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" diff -r 551cd440acce -r c88a794d9a22 orpg/xmltramp.py --- 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 += '' return out