Revision: 3542
Author: janne.t.harkonen
Date: Wed May 26 03:23:18 2010
Log: cleanup
http://code.google.com/p/robotframework/source/detail?r=3542

Modified:
 /trunk/src/robot/common/model.py
 /trunk/src/robot/utils/normalizing.py

=======================================
--- /trunk/src/robot/common/model.py    Tue May 25 05:32:35 2010
+++ /trunk/src/robot/common/model.py    Wed May 26 03:23:18 2010
@@ -112,8 +112,7 @@
             self.metadata[name] = value

     def get_metadata(self, html=False):
-        names = self.metadata.keys()
-        names.sort()
+        names = sorted(self.metadata.keys())
         values = [ self.metadata[n] for n in names ]
         if html:
values = [ utils.html_escape(v, formatting=True) for v in values ]
=======================================
--- /trunk/src/robot/utils/normalizing.py       Tue Mar 23 04:15:41 2010
+++ /trunk/src/robot/utils/normalizing.py       Wed May 26 03:23:18 2010
@@ -12,9 +12,7 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.

-
 import os
-import sys
 import re
 from UserDict import UserDict

@@ -51,6 +49,7 @@
     ret.sort(lambda x, y: cmp(normalize(x), normalize(y)))
     return ret

+
 def normpath(path, normcase=True):
     """Returns path in normalized and absolute format.

@@ -74,6 +73,7 @@
             return path
     return os.path.abspath(path)

+
 class NormalizedDict(UserDict):

def __init__(self, initial={}, ignore=[], caseless=True, spaceless=True):

Reply via email to