Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: mojo/public/third_party/markupsafe/_native.py

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 """ 2 """
3 markupsafe._native 3 markupsafe._native
4 ~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~
5 5
6 Native Python implementation the C module is not compiled. 6 Native Python implementation the C module is not compiled.
7 7
8 :copyright: (c) 2010 by Armin Ronacher. 8 :copyright: (c) 2010 by Armin Ronacher.
9 :license: BSD, see LICENSE for more details. 9 :license: BSD, see LICENSE for more details.
10 """ 10 """
(...skipping 26 matching lines...) Expand all
37 return escape(s) 37 return escape(s)
38 38
39 39
40 def soft_unicode(s): 40 def soft_unicode(s):
41 """Make a string unicode if it isn't already. That way a markup 41 """Make a string unicode if it isn't already. That way a markup
42 string is not converted back to unicode. 42 string is not converted back to unicode.
43 """ 43 """
44 if not isinstance(s, text_type): 44 if not isinstance(s, text_type):
45 s = text_type(s) 45 s = text_type(s)
46 return s 46 return s
OLDNEW
« no previous file with comments | « mojo/public/third_party/markupsafe/_constants.py ('k') | mojo/public/third_party/markupsafe/_speedups.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698