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
a9d2aacf
Commit
a9d2aacf
authored
Aug 19, 2010
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Issue9638 - remove dead code from py3k imaplib
parent
5c958879
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
Lib/imaplib.py
Lib/imaplib.py
+0
-15
No files found.
Lib/imaplib.py
View file @
a9d2aacf
...
...
@@ -147,8 +147,6 @@ class IMAP4:
class abort(error): pass # Service errors - close and retry
class readonly(abort): pass # Mailbox status changed to READ-ONLY
mustquote = re.compile(br"[^
\
w!#$%&
'
*+,.:;<=>?^`|~-]", re.ASCII)
def __init__(self, host = '', port = IMAP4_PORT):
self.debug = Debug
self.state = '
LOGOUT
'
...
...
@@ -846,7 +844,6 @@ class IMAP4:
if
arg
is
None
:
continue
if
isinstance
(
arg
,
str
):
arg
=
bytes
(
arg
,
"ASCII"
)
#data = data + b' ' + self._checkquote(arg)
data
=
data
+
b' '
+
arg
literal
=
self
.
literal
...
...
@@ -1055,18 +1052,6 @@ class IMAP4:
return
tag
def
_checkquote
(
self
,
arg
):
# Must quote command args if non-alphanumeric chars present,
# and not already quoted.
if
len
(
arg
)
>=
2
and
(
arg
[
0
],
arg
[
-
1
])
in
((
'('
,
')'
),(
'"'
,
'"'
)):
return
arg
if
arg
and
self
.
mustquote
.
search
(
arg
)
is
None
:
return
arg
return
self
.
_quote
(
arg
)
def
_quote
(
self
,
arg
):
arg
=
arg
.
replace
(
b'
\
\
'
,
b'
\
\
\
\
'
)
...
...
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