django1/django/utils
Ramiro Morales 47ddd6a408 Fixed #19552 -- Enhanced makemessages handling of ``{# #}``-style template comments.
They are simply ignored now. This allows for a more correct behavior when
they are placed before translatable constructs on the same line.

Previously, the latter were wrongly ignored because the former were
preserved when converting template code to the internal Python-syntax
form later fed to xgettext but Python has no ``/* ... */``-style
comments.

Also, special comments directed to translators are now only taken in
account when they are located at the end of a line. e.g.::

  {# Translators: ignored #}{% trans "Literal A" %}{# Translators: valid, associated with "Literal B" below #}
  {% trans "Literal B" %}

Behavior of ``{% comment %}...{% endcomment %}``tags remains unchanged.

Thanks juneih at redpill-linpro dot com for the report and Claude for
his work on the issue.
2013-01-29 19:13:23 -03:00
..
2to3_fixes [py3] Added fixer for python_2_unicode_compatible. 2012-08-12 14:44:40 +02:00
translation Fixed #19552 -- Enhanced makemessages handling of ``{# #}``-style template comments. 2013-01-29 19:13:23 -03:00
unittest Fixed #19204 -- Replaced python2-style exception syntax. 2012-12-24 14:05:36 +01:00
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
_os.py Fixed #19357 -- Allow non-ASCII chars in filesystem paths 2012-12-08 11:13:52 +01:00
archive.py Ensured that the archive module consistantly explicitly closed all files. 2012-08-15 02:53:40 -07:00
autoreload.py Made dev server autoreloader ignore filenames reported as None. 2013-01-11 15:31:39 -03:00
baseconv.py Fix copyright holder 2012-07-06 15:24:07 -03:00
cache.py Fixed #7581 -- Added streaming responses. 2012-10-20 20:05:11 +02:00
checksums.py Removed django.contrib.localflavor. 2012-12-29 21:59:06 +01:00
crypto.py Replaced many smart_bytes by force_bytes 2012-08-29 11:20:32 +02:00
daemonize.py Switched to octal notation (bis). 2012-07-20 13:42:44 +02:00
datastructures.py Advanced pending deprecation warnings. 2012-12-29 21:59:07 +01:00
dateformat.py Fixed #18951 -- Formatting of microseconds. 2012-09-22 12:02:21 +02:00
dateparse.py Fixed #18728 -- Made colon optional in tzinfo 2012-08-19 21:47:41 +02:00
dates.py Fixed #9988 (again) -- Updated list of Associated Press months names to use a translation context. Thanks, Claude Paroz. 2011-01-21 22:25:50 +00:00
datetime_safe.py Fixed #12524 -- Clarified handling of pre-1000AD dates in datetime_safe (and thus, the serializers). Patch includes moving the datetime_safe tests into the utils regressiontests module. Thanks to gsf for the report and initial patch. 2010-02-13 14:02:32 +00:00
decorators.py Fixed #18013 -- Use the new 'as' syntax for exceptions. 2012-04-29 20:57:15 +02:00
dictconfig.py remove a bunch of unnescesarry iterkeys() calls 2012-08-08 07:33:15 -07:00
encoding.py Advanced pending deprecation warnings. 2012-12-29 21:59:07 +01:00
feedgenerator.py [py3] Ported django.utils.feedgenerator. 2012-08-07 12:00:23 +02:00
formats.py Fixed #19015 -- Add ISO input formats to all formats 2012-12-01 14:05:52 +01:00
functional.py Fixed a couple of docstring typos. 2012-12-15 10:22:22 -03:00
html.py Fixed #19577 - Added HTML escaping to admin examples. 2013-01-25 06:53:40 -05:00
html_parser.py Fix an HTML-parser test that's failed in Python 2.6.8 since 5c79dd58. 2012-09-09 12:13:42 -06:00
http.py Fixed #18856 -- Ensured that redirects can't be poisoned by malicious users. 2012-12-10 22:11:39 +01:00
importlib.py [py3] Added Python 3 compatibility for xrange. 2012-07-22 09:29:56 +02:00
ipv6.py [py3] Replace filter/lambda by list comprehensions 2012-08-14 14:31:06 +02:00
itercompat.py Advanced pending deprecation warnings. 2012-12-29 21:59:07 +01:00
jslex.py Fixed #16971 - Made the parsing of javascript files by 'makemessages' much faster. Thanks Antti Haapala for the implementation and Ned Batchelder for the patch. 2011-10-04 20:11:41 +00:00
log.py Fixed #19637 -- Ensured AdminEmailHandler fails silently 2013-01-21 20:32:36 +01:00
module_loading.py Fixed #15525 -- Custom template tags loading breaks whenever templatetags is a python file 2011-08-28 02:37:16 +00:00
numberformat.py Fixed #18800 -- Support numbers bigger than max float in `numberformat`. 2012-09-18 19:43:50 +02:00
regex_helper.py [py3] Ported django.utils.regex_helper. 2012-08-07 12:00:24 +02:00
safestring.py [py3] Ported django.utils.safestring. 2012-08-18 16:04:06 +02:00
simplejson.py Advanced pending deprecation warnings. 2012-12-29 21:59:07 +01:00
six.py Fixed #19589 -- assertRegexpMatches is deprecated in Python 3.3. 2013-01-26 13:47:11 +01:00
synch.py Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
termcolors.py [py3] Fixed access to dict keys/values/items. 2012-08-07 12:00:22 +02:00
text.py Removed truncate_words and truncate_html_words. 2012-12-29 21:59:07 +01:00
timesince.py Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
timezone.py [py3] Replaced basestring by six.string_types. 2012-07-22 09:29:54 +02:00
tree.py Fixed #18963 -- Used a subclass-friendly pattern 2012-11-03 22:07:35 +01:00
tzinfo.py Replaced some smart_xxx by force_xxx equivalent 2012-08-30 15:46:16 +02:00
version.py Ensured get_version returns a native string. 2012-10-25 21:49:18 +02:00
xmlutils.py Eliminated lots of mutable default arguments (since they are bugs 2006-06-03 13:37:34 +00:00