Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b2874bc5
Commit
b2874bc5
authored
Oct 29, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge heads
parents
6230235e
860c8a40
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
7 deletions
+2
-7
Lib/getpass.py
Lib/getpass.py
+1
-1
Lib/pickletools.py
Lib/pickletools.py
+1
-1
Lib/smtplib.py
Lib/smtplib.py
+0
-2
PC/testpy.py
PC/testpy.py
+0
-2
Parser/asdl_c.py
Parser/asdl_c.py
+0
-1
No files found.
Lib/getpass.py
View file @
b2874bc5
...
...
@@ -99,7 +99,7 @@ def win_getpass(prompt='Password: ', stream=None):
"""Prompt for password with echo off, using Windows getch()."""
if
sys
.
stdin
is
not
sys
.
__stdin__
:
return
fallback_getpass
(
prompt
,
stream
)
import
msvcrt
for
c
in
prompt
:
msvcrt
.
putwch
(
c
)
pw
=
""
...
...
Lib/pickletools.py
View file @
b2874bc5
...
...
@@ -2794,7 +2794,7 @@ def _test():
return
doctest
.
testmod
()
if
__name__
==
"__main__"
:
import
sys
,
argparse
import
argparse
parser
=
argparse
.
ArgumentParser
(
description
=
'disassemble one or more pickle files'
)
parser
.
add_argument
(
...
...
Lib/smtplib.py
View file @
b2874bc5
...
...
@@ -1080,8 +1080,6 @@ class LMTP(SMTP):
# Test the sendmail method, which tests most of the others.
# Note: This always sends to localhost.
if __name__ == '__main__':
import sys
def prompt(prompt):
sys.stdout.write(prompt + ": ")
sys.stdout.flush()
...
...
PC/testpy.py
View file @
b2874bc5
...
...
@@ -18,8 +18,6 @@ except:
a PC, you should add the dos_8x3 directory to your PYTHONPATH."""
)
sys
.
exit
(
1
)
import
os
for
dir
in
sys
.
path
:
file
=
os
.
path
.
join
(
dir
,
"os.py"
)
if
os
.
path
.
isfile
(
file
):
...
...
Parser/asdl_c.py
View file @
b2874bc5
...
...
@@ -1289,7 +1289,6 @@ def main(srcfile, dump_module=False):
f
.
close
()
if
__name__
==
"__main__"
:
import
sys
import
getopt
INC_DIR
=
''
...
...
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