summaryrefslogtreecommitdiff
path: root/sphinx/quickstart.py
diff options
context:
space:
mode:
authorAlastair Houghton <alastair@alastairs-place.net>2015-01-14 13:37:54 +0000
committerAlastair Houghton <alastair@alastairs-place.net>2015-01-14 13:37:54 +0000
commit970565ab6bd8267be5a584010bed62427bbaa8b2 (patch)
tree7f9df0e480870df3136d292f189737255d02d229 /sphinx/quickstart.py
parent94847ad94ee21fd5d550ed55e26e4144af8a71ec (diff)
downloadsphinx-git-970565ab6bd8267be5a584010bed62427bbaa8b2.tar.gz
Encode the project name using IDNA if necessary.
Diffstat (limited to 'sphinx/quickstart.py')
-rw-r--r--sphinx/quickstart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py
index 522f5f936..3f77567f4 100644
--- a/sphinx/quickstart.py
+++ b/sphinx/quickstart.py
@@ -1336,7 +1336,7 @@ def generate(d, overwrite=True, silent=False):
d['mastertocmaxdepth'] = 2
d['project_fn'] = make_filename(d['project'])
- d['project_url'] = urlquote(d['project'])
+ d['project_url'] = urlquote(d['project'].encode('idna'))
d['project_manpage'] = d['project_fn'].lower()
d['now'] = time.asctime()
d['project_underline'] = column_width(d['project']) * '='