Fix #80: use string.ascii_* constants in case locale.setlocale() is

somehow called which then leads to UnicodeErrors.
This commit is contained in:
Georg Brandl 2009-01-02 14:51:55 +01:00
parent f07d0afef2
commit 8af0caea30
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ def parse_c_type(node, ctype):
# add cross-ref nodes for all words
for part in filter(None, wsplit_re.split(ctype)):
tnode = nodes.Text(part, part)
if part[0] in string.letters+'_' and part not in stopwords:
if part[0] in string.ascii_letters+'_' and part not in stopwords:
pnode = addnodes.pending_xref(
'', reftype='ctype', reftarget=part, modname=None, classname=None)
pnode += tnode

View File

@ -19,7 +19,7 @@ import difflib
import cPickle as pickle
from os import path
from glob import glob
from string import uppercase
from string import ascii_uppercase as uppercase
from itertools import izip, groupby
try:
import hashlib