Browse Source

cosmetic: remove duplicated function

Damien ACCORSI 10 years ago
parent
commit
59a3d1f61f
1 changed files with 1 additions and 5 deletions
  1. 1 5
      tracim/tracim/lib/helpers.py

+ 1 - 5
tracim/tracim/lib/helpers.py View File

@@ -5,7 +5,7 @@
5 5
 #from webhelpers import date, feedgenerator, html, number, misc, text
6 6
 from markupsafe import Markup
7 7
 from datetime import datetime
8
-from tg.i18n import ugettext as _, lazy_ugettext as l_
8
+
9 9
 import tg
10 10
 
11 11
 from tracim.lib import app_globals as plag
@@ -25,10 +25,6 @@ def date_time_in_long_format(datetime_object, format=''):
25 25
         format = plag.Globals.LONG_DATE_FORMAT
26 26
     return datetime_object.strftime(format.__str__())
27 27
 
28
-def date_time_in_long_format(datetime_object, format=''):
29
-    if not format:
30
-        format = plag.Globals.LONG_DATE_FORMAT
31
-    return datetime_object.strftime(format.__str__())
32 28
 
33 29
 def format_short(datetime_object):
34 30
     return datetime_object.strftime(format = plag.Globals.SHORT_DATE_FORMAT.__str__())