Skip to content
Myr

_markupsafe: remove some py2.4/2.5 compat code

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Thomas Waldmann · committed by Thomas Waldmann · parent 7d29562 · Browse files · 1 file+1 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−9 removed

  • other:+1 added−9 removed

1 file+1 added−9 removed

modified:jinja2/_markupsafe/__init__.py+1 added-9 removed
178 unmodified lines
179 return func180181 for method in '__getitem__', 'capitalize', \182 'title', 'lower', 'upper', 'replace', 'ljust', \183 'format', 'partition', 'rpartition', \184 'rjust', 'lstrip', 'rstrip', 'center', 'strip', \185 'translate', 'expandtabs', 'swapcase', 'zfill':186 locals()[method] = make_wrapper(method)187187 # new in python 2.5188 if hasattr(six.text_type, 'partition'):189 partition = make_wrapper('partition'),190 rpartition = make_wrapper('rpartition')191192 # new in python 2.6193 if hasattr(six.text_type, 'format'):194 format = make_wrapper('format')195188 # not in python 3189 if hasattr(six.text_type, '__getslice__'):190 __getslice__ = make_wrapper('__getslice__')191
31 unmodified lines