summaryrefslogtreecommitdiff
path: root/sphinx/quickstart.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-01-13 10:26:52 +0100
committerGeorg Brandl <georg@python.org>2013-01-13 10:26:52 +0100
commitb4062568688e7c3323ee03f4ea5827b57742c3b4 (patch)
treeb96d2c96b1c0e0f54bbdb3073bf00540ced52ab8 /sphinx/quickstart.py
parentb233525fb2ae18bfe7d67ad3f0f7a0a8f7a81426 (diff)
downloadsphinx-b4062568688e7c3323ee03f4ea5827b57742c3b4.tar.gz
Fix pyflakes issues.
Diffstat (limited to 'sphinx/quickstart.py')
-rw-r--r--sphinx/quickstart.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py
index 705bdb15..8ac943a2 100644
--- a/sphinx/quickstart.py
+++ b/sphinx/quickstart.py
@@ -881,14 +881,13 @@ def do_prompt(d, key, text, default=None, validator=nonempty):
if sys.version_info >= (3, 0):
# remove Unicode literal prefixes
- _unicode_string_re = re.compile(r"[uU]('.*?')")
- def _convert_python_source(source):
- return _unicode_string_re.sub('\\1', source)
+ def _convert_python_source(source, rex=re.compile(r"[uU]('.*?')")):
+ return rex.sub('\\1', source)
for f in ['QUICKSTART_CONF', 'EPUB_CONFIG', 'INTERSPHINX_CONFIG']:
globals()[f] = _convert_python_source(globals()[f])
- del _unicode_string_re, _convert_python_source
+ del _convert_python_source
def ask_user(d):