Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed partition and rparition. This fixes #1

  • Loading branch information...
commit 9d03e681cad0a8e3193a94c8c899eb8c404ec96c 1 parent ad2734a
@mitsuhiko authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 markupsafe/__init__.py
View
8 markupsafe/__init__.py
@@ -181,8 +181,12 @@ def func(self, *args, **kwargs):
# new in python 2.5
if hasattr(unicode, 'partition'):
- partition = make_wrapper('partition'),
- rpartition = make_wrapper('rpartition')
+ def partition(self, sep):
+ return tuple(map(self.__class__,
+ unicode.partition(self, escape(sep))))
+ def rpartition(self, sep):
+ return tuple(map(self.__class__,
+ unicode.rpartition(self, escape(sep))))
# new in python 2.6
if hasattr(unicode, 'format'):

0 comments on commit 9d03e68

Please sign in to comment.
Something went wrong with that request. Please try again.