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
936654bc
Commit
936654bc
authored
Jun 01, 2002
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced boolean test with is None
parent
094662a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Lib/imaplib.py
Lib/imaplib.py
+1
-1
Lib/imputil.py
Lib/imputil.py
+1
-1
Lib/inspect.py
Lib/inspect.py
+2
-2
No files found.
Lib/imaplib.py
View file @
936654bc
...
...
@@ -539,7 +539,7 @@ class IMAP4:
# Mandated responses are ('FLAGS', 'EXISTS', 'RECENT', 'UIDVALIDITY')
self
.
untagged_responses
=
{}
# Flush old responses.
self
.
is_readonly
=
readonly
if
readonly
:
if
readonly
is
not
None
:
name
=
'EXAMINE'
else
:
name
=
'SELECT'
...
...
Lib/imputil.py
View file @
936654bc
...
...
@@ -66,7 +66,7 @@ class ImportManager:
# This is the Importer that we use for grabbing stuff from the
# filesystem. It defines one more method (import_from_dir) for our use.
if
not
fs_imp
:
if
fs_imp
is
None
:
cls
=
self
.
clsFilesystemImporter
or
_FilesystemImporter
fs_imp
=
cls
()
self
.
fs_imp
=
fs_imp
...
...
Lib/inspect.py
View file @
936654bc
...
...
@@ -665,9 +665,9 @@ def formatargspec(args, varargs=None, varkw=None, defaults=None,
if
defaults
and
i
>=
firstdefault
:
spec
=
spec
+
formatvalue
(
defaults
[
i
-
firstdefault
])
specs
.
append
(
spec
)
if
varargs
:
if
varargs
is
not
None
:
specs
.
append
(
formatvarargs
(
varargs
))
if
varkw
:
if
varkw
is
not
None
:
specs
.
append
(
formatvarkw
(
varkw
))
return
'('
+
string
.
join
(
specs
,
', '
)
+
')'
...
...
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