Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 17:02:28 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-16 15:28:51 +0300
commitc6bd84a61467a5a60adb11af7b5a7b99ac591fbf (patch)
tree239ba4d0bba3e6bf925af917d7c6d219ae1a6f64 /sphinx/highlighting.py
parentd160adb8118ebe19ee74b3fbd55478490c473ed8 (diff)
refactor: Remove u-prefix from strings
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r--sphinx/highlighting.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py
index 1ecf3d8d5..3f044f72a 100644
--- a/sphinx/highlighting.py
+++ b/sphinx/highlighting.py
@@ -51,9 +51,9 @@ for _lexer in lexers.values():
_lexer.add_filter('raiseonerror')
-escape_hl_chars = {ord(u'\\'): u'\\PYGZbs{}',
- ord(u'{'): u'\\PYGZob{}',
- ord(u'}'): u'\\PYGZcb{}'}
+escape_hl_chars = {ord('\\'): '\\PYGZbs{}',
+ ord('{'): '\\PYGZob{}',
+ ord('}'): '\\PYGZcb{}'}
# used if Pygments is available
# use textcomp quote to get a true single quote