Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 357876 Details for
Bug 482034
www-apps/trac-1.0.1 - migrate to distutils-r1.eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/trac-1.0.1-changeset_11773.diff
trac-1.0.1-changeset_11773.diff (text/plain), 1.36 KB, created by
Bertrand Jacquin
on 2013-09-04 22:21:47 UTC
(
hide
)
Description:
files/trac-1.0.1-changeset_11773.diff
Filename:
MIME Type:
Creator:
Bertrand Jacquin
Created:
2013-09-04 22:21:47 UTC
Size:
1.36 KB
patch
obsolete
>------------------------------------------------------------------------ >r11773 | jomae | 2013-04-10 13:48:46 +0200 (Wed, 10 Apr 2013) | 4 lines > >1.0.2dev: follow-up to r11691, `get_known_locales()` works with Babel 1.0dev > >`babel.localedata.list` has been renamed to `locale_identifiers` in [babel:r599/trunk]. > > >Index: trac/util/datefmt.py >=================================================================== >--- trac/util/datefmt.py (revision 11772) >+++ trac/util/datefmt.py (revision 11773) >@@ -26,6 +26,11 @@ > > try: > import babel >+except ImportError: >+ babel = None >+ def get_known_locales(): >+ return [] >+else: > from babel import Locale > from babel.core import LOCALE_ALIASES > from babel.dates import ( >@@ -36,13 +41,11 @@ > get_time_format, get_month_names, > get_period_names, get_day_names > ) >- from babel.localedata import list as get_known_locales >+ try: >+ from babel.localedata import list as get_known_locales >+ except ImportError: >+ from babel.localedata import locale_identifiers as get_known_locales > >-except ImportError: >- babel = None >- def get_known_locales(): >- return [] >- > from trac.core import TracError > from trac.util.text import to_unicode, getpreferredencoding > from trac.util.translation import _, ngettext > >------------------------------------------------------------------------
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 482034
:
356648
|
356650
|
356652
|
357850
|
357858
|
357860
|
357862
|
357864
|
357866
|
357868
|
357870
|
357872
|
357874
| 357876 |
357878
|
357880
|
357882
|
357884
|
357886
|
357888
|
376934
|
377034
|
377036
|
377038