Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 81c51b3

Browse files
committed
Updated extensions for Python3
1 parent 03b8e3f commit 81c51b3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

_exts/sensio/sphinx/configurationblock.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from docutils.parsers.rst import Directive, directives
88
from docutils import nodes
9-
from string import upper
109

1110
class configurationblock(nodes.General, nodes.Element):
1211
pass

_exts/sensio/sphinx/phpcode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from docutils import nodes, utils
88

99
from sphinx.util.nodes import split_explicit_title
10-
from string import lower
10+
import sys
1111

1212
def php_namespace_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
1313
text = utils.unescape(text)
@@ -82,7 +82,7 @@ def php_phpclass_role(typ, rawtext, text, lineno, inliner, options={}, content=[
8282
text = utils.unescape(text)
8383
has_explicit_title, title, full_class = split_explicit_title(text)
8484

85-
full_url = 'http://php.net/manual/en/class.%s.php' % lower(full_class)
85+
full_url = 'http://php.net/manual/en/class.%s.php' % full_class.lower()
8686

8787
if not has_explicit_title:
8888
title = full_class
@@ -94,7 +94,7 @@ def php_phpfunction_role(typ, rawtext, text, lineno, inliner, options={}, conten
9494
text = utils.unescape(text)
9595
has_explicit_title, title, full_function = split_explicit_title(text)
9696

97-
full_url = 'http://php.net/manual/en/function.%s.php' % lower(full_function.replace('_', '-'))
97+
full_url = 'http://php.net/manual/en/function.%s.php' % full_function.replace('_', '-').lower()
9898

9999
if not has_explicit_title:
100100
title = full_function

0 commit comments

Comments
 (0)