common/uilib.py
branchtls-sprint
changeset 1132 96752791c2b6
parent 1016 26387b836099
child 1263 01152fffd593
--- a/common/uilib.py	Mon Mar 23 17:38:30 2009 +0100
+++ b/common/uilib.py	Mon Mar 23 17:55:59 2009 +0100
@@ -15,9 +15,7 @@
 from datetime import datetime, date, timedelta
 from urllib import quote as urlquote
 from cStringIO import StringIO
-from copy import deepcopy
 
-from logilab.common.textutils import unormalize
 from logilab.mtconverter import html_escape, html_unescape
 
 from cubicweb.utils import ustrftime
@@ -340,7 +338,7 @@
             cell_12 = line[j+1] is not None
             cell_21 = line[j+1] is not None and line[j+1].next_sibling() is not None
             link_type = link_types.get((cell_11, cell_12, cell_21), 0)
-            if link_type == 0 and i > 0 and links[i-1][j] in (1,2,3):
+            if link_type == 0 and i > 0 and links[i-1][j] in (1, 2, 3):
                 link_type = 2
             links[-1].append(link_type)