Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
79e75e19
Kaydet (Commit)
79e75e19
authored
Tem 20, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use string.ascii_letters instead of string.letters (SF bug #226706).
üst
f69868f3
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
17 additions
and
18 deletions
+17
-18
rcslib.py
Demo/pdist/rcslib.py
+1
-1
Cookie.py
Lib/Cookie.py
+1
-1
cmd.py
Lib/cmd.py
+1
-1
dospath.py
Lib/dospath.py
+1
-1
codehack.py
Lib/lib-old/codehack.py
+1
-1
ntpath.py
Lib/ntpath.py
+1
-1
riscospath.py
Lib/plat-riscos/riscospath.py
+1
-1
test_mimetools.py
Lib/test/test_mimetools.py
+1
-1
tokenize.py
Lib/tokenize.py
+1
-1
PyEdit.py
Mac/Tools/IDE/PyEdit.py
+1
-2
gensuitemodule.py
Mac/scripts/gensuitemodule.py
+1
-1
AutoExpand.py
Tools/idle/AutoExpand.py
+1
-1
UndoDelegator.py
Tools/idle/UndoDelegator.py
+1
-1
fixheader.py
Tools/scripts/fixheader.py
+1
-1
texi2html.py
Tools/scripts/texi2html.py
+3
-3
No files found.
Demo/pdist/rcslib.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -33,7 +33,7 @@ class RCS:
"""
# Characters allowed in work file names
okchars
=
string
.
letters
+
string
.
digits
+
'-_=+.
'
okchars
=
string
.
ascii_letters
+
string
.
digits
+
'-_=+
'
def
__init__
(
self
):
"""Constructor."""
...
...
Lib/Cookie.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -249,7 +249,7 @@ class CookieError(Exception):
# _LegalChars is the list of chars which don't require "'s
# _Translator hash-table for fast quoting
#
_LegalChars
=
string
.
letters
+
string
.
digits
+
"!#$
%
&'*+-.^_`|~"
_LegalChars
=
string
.
ascii_
letters
+
string
.
digits
+
"!#$
%
&'*+-.^_`|~"
_Translator
=
{
'
\000
'
:
'
\\
000'
,
'
\001
'
:
'
\\
001'
,
'
\002
'
:
'
\\
002'
,
'
\003
'
:
'
\\
003'
,
'
\004
'
:
'
\\
004'
,
'
\005
'
:
'
\\
005'
,
...
...
Lib/cmd.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -40,7 +40,7 @@ import string, sys
__all__
=
[
"Cmd"
]
PROMPT
=
'(Cmd) '
IDENTCHARS
=
string
.
letters
+
string
.
digits
+
'_'
IDENTCHARS
=
string
.
ascii_
letters
+
string
.
digits
+
'_'
class
Cmd
:
prompt
=
PROMPT
...
...
Lib/dospath.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -241,7 +241,7 @@ def expandvars(path):
if
'$'
not
in
path
:
return
path
import
string
varchars
=
string
.
letters
+
string
.
digits
+
'_-'
varchars
=
string
.
ascii_letters
+
string
.
digits
+
"_-"
res
=
''
index
=
0
pathlen
=
len
(
path
)
...
...
Lib/lib-old/codehack.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -31,7 +31,7 @@ import linecache
# Because this is a pretty expensive hack, a cache is kept.
SET_LINENO
=
127
# The opcode (see "opcode.h" in the Python source)
identchars
=
string
.
letters
+
string
.
digits
+
'_'
# Identifier characters
identchars
=
string
.
ascii_
letters
+
string
.
digits
+
'_'
# Identifier characters
_namecache
=
{}
# The cache
...
...
Lib/ntpath.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -334,7 +334,7 @@ def expandvars(path):
if
'$'
not
in
path
:
return
path
import
string
varchars
=
string
.
letters
+
string
.
digits
+
'_-'
varchars
=
string
.
ascii_
letters
+
string
.
digits
+
'_-'
res
=
''
index
=
0
pathlen
=
len
(
path
)
...
...
Lib/plat-riscos/riscospath.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -62,7 +62,7 @@ def _split(p):
s
=
q
# find end of main FS name, not including special field
else
:
for
c
in
p
[
dash
:
s
]:
if
c
not
in
string
.
letters
:
if
c
not
in
string
.
ascii_
letters
:
q
=
0
break
# disallow invalid non-special-field characters in FS name
r
=
q
...
...
Lib/test/test_mimetools.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -2,7 +2,7 @@ from test_support import TestFailed
import
mimetools
import
string
,
StringIO
start
=
string
.
letters
+
"="
+
string
.
digits
+
"
\n
"
start
=
string
.
ascii_
letters
+
"="
+
string
.
digits
+
"
\n
"
for
enc
in
[
'7bit'
,
'8bit'
,
'base64'
,
'quoted-printable'
]:
print
enc
,
i
=
StringIO
.
StringIO
(
start
)
...
...
Lib/tokenize.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -133,7 +133,7 @@ def tokenize_loop(readline, tokeneater):
def
generate_tokens
(
readline
):
lnum
=
parenlev
=
continued
=
0
namechars
,
numchars
=
string
.
letters
+
'_'
,
string
.
digits
namechars
,
numchars
=
string
.
ascii_letters
+
'_'
,
'0123456789'
contstr
,
needcont
=
''
,
0
contline
=
None
indents
=
[
0
]
...
...
Mac/Tools/IDE/PyEdit.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -25,8 +25,7 @@ else:
haveThreading
=
Wthreading
.
haveThreading
_scriptuntitledcounter
=
1
# _wordchars = string.letters + string.digits + "_"
_wordchars
=
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'
_wordchars
=
string
.
ascii_letters
+
string
.
digits
+
"_"
runButtonLabels
=
[
"Run all"
,
"Stop!"
]
...
...
Mac/scripts/gensuitemodule.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -825,7 +825,7 @@ def identify(str):
if
not
str
:
return
"_empty_ae_name"
rv
=
''
ok
=
string
.
letters
+
'_'
ok
=
string
.
ascii_letters
+
'_'
ok2
=
ok
+
string
.
digits
for
c
in
str
:
if
c
in
ok
:
...
...
Tools/idle/AutoExpand.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -21,7 +21,7 @@ class AutoExpand:
]),
]
wordchars
=
string
.
letters
+
string
.
digits
+
"_"
wordchars
=
string
.
ascii_
letters
+
string
.
digits
+
"_"
def
__init__
(
self
,
editwin
):
self
.
text
=
editwin
.
text
...
...
Tools/idle/UndoDelegator.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -251,7 +251,7 @@ class InsertCommand(Command):
self
.
chars
=
self
.
chars
+
cmd
.
chars
return
1
alphanumeric
=
string
.
letters
+
string
.
digits
+
"_"
alphanumeric
=
string
.
ascii_
letters
+
string
.
digits
+
"_"
def
classify
(
self
,
c
):
if
c
in
self
.
alphanumeric
:
...
...
Tools/scripts/fixheader.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -29,7 +29,7 @@ def process(file):
sys
.
stderr
.
write
(
'Processing
%
s ...
\n
'
%
file
)
magic
=
'Py_'
for
c
in
file
:
if
c
in
string
.
letters
+
string
.
digits
:
if
c
in
string
.
ascii_
letters
+
string
.
digits
:
magic
=
magic
+
string
.
upper
(
c
)
else
:
magic
=
magic
+
'_'
sys
.
stdout
=
f
...
...
Tools/scripts/texi2html.py
Dosyayı görüntüle @
79e75e19
...
...
@@ -422,7 +422,7 @@ class TexinfoParser:
# Cannot happen unless spprog is changed
raise
RuntimeError
,
'unexpected funny '
+
`c`
start
=
i
while
i
<
n
and
text
[
i
]
in
string
.
letters
:
i
=
i
+
1
while
i
<
n
and
text
[
i
]
in
string
.
ascii_
letters
:
i
=
i
+
1
if
i
==
start
:
# @ plus non-letter: literal next character
i
=
i
+
1
...
...
@@ -1260,7 +1260,7 @@ class TexinfoParser:
if
self
.
itemindex
:
self
.
index
(
self
.
itemindex
,
args
)
if
self
.
itemarg
:
if
self
.
itemarg
[
0
]
==
'@'
and
self
.
itemarg
[
1
:
2
]
and
\
self
.
itemarg
[
1
]
in
string
.
letters
:
self
.
itemarg
[
1
]
in
string
.
ascii_
letters
:
args
=
self
.
itemarg
+
'{'
+
args
+
'}'
else
:
# some other character, e.g. '-'
...
...
@@ -1524,7 +1524,7 @@ def makefile(nodename):
# Characters that are perfectly safe in filenames and hyperlinks
goodchars
=
string
.
letters
+
string
.
digits
+
'!@-=+.'
goodchars
=
string
.
ascii_
letters
+
string
.
digits
+
'!@-=+.'
# Replace characters that aren't perfectly safe by dashes
# Underscores are bad since Cern HTTPD treats them as delimiters for
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment