refresh patch to remove 'fuzz'

This commit is contained in:
kytv
2014-02-14 01:53:25 +00:00
parent 9e4bbb72bf
commit e0a7a2348f

View File

@ -1,5 +1,5 @@
--- env/lib/python2.7/site-packages/flask_babel/__init__.py 2013-07-13 00:00:00 +0000
+++ env/lib/python2.7/site-packages/flask_babel/__init__.py 2013-07-13 00:00:00 +0000
--- env/lib/python2.7/site-packages/flask_babel/__init__.py 2014-02-14 01:30:08.990285797 +0000
+++ env/lib/python2.7/site-packages/flask_babel/__init__.py 2014-02-14 01:30:14.030285865 +0000
@@ -19,6 +19,7 @@
from datetime import datetime
from flask import _request_ctx_stack
@ -8,7 +8,7 @@
from werkzeug import ImmutableDict
try:
from pytz.gae import pytz
@@ -55,9 +56,11 @@
@@ -57,9 +58,11 @@
})
def __init__(self, app=None, default_locale='en', default_timezone='UTC',
@ -21,7 +21,7 @@
self._date_formats = date_formats
self._configure_jinja = configure_jinja
self.app = app
@@ -77,6 +80,7 @@
@@ -79,6 +82,7 @@
app.config.setdefault('BABEL_DEFAULT_LOCALE', self._default_locale)
app.config.setdefault('BABEL_DEFAULT_TIMEZONE', self._default_timezone)
@ -29,7 +29,7 @@
if self._date_formats is None:
self._date_formats = self.default_date_formats.copy()
@@ -95,6 +99,7 @@
@@ -97,6 +101,7 @@
self.locale_selector_func = None
self.timezone_selector_func = None
@ -37,7 +37,7 @@
if self._configure_jinja:
app.jinja_env.filters.update(
@@ -142,6 +147,19 @@
@@ -144,6 +149,19 @@
self.timezone_selector_func = f
return f
@ -57,7 +57,7 @@
def list_translations(self):
"""Returns a list of all the locales translations exist for. The
@@ -178,6 +196,13 @@
@@ -180,6 +198,13 @@
"""
return timezone(self.app.config['BABEL_DEFAULT_TIMEZONE'])
@ -71,7 +71,7 @@
def get_translations():
"""Returns the correct gettext translations that should be used for
@@ -191,7 +216,10 @@
@@ -193,7 +218,10 @@
translations = getattr(ctx, 'babel_translations', None)
if translations is None:
dirname = os.path.join(ctx.app.root_path, 'translations')
@ -83,7 +83,7 @@
ctx.babel_translations = translations
return translations
@@ -243,6 +271,29 @@
@@ -245,6 +273,29 @@
return tzinfo