Commits

Jun Omae  committed c8dceba

Uses `v == 0` instead of `v is 0`. The expression `v is 0` never be True on pypy 1.6.

  • Participants
  • Parent commits 71b338a

Comments (0)

Files changed (1)

File trac/ticket/report.py

     >>> (cell_value(None), cell_value(0), cell_value(1), cell_value('v'))
     ('', '0', u'1', u'v')
     """
-    return '0' if v is 0 else unicode(v) if v else ''
+    return '0' if v == 0 else unicode(v) if v else ''
 
 
 class ReportModule(Component):