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
dbbf76bd
Commit
dbbf76bd
authored
Jul 09, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make tabnanny happy.
mailbox.py: Convert to 4-space indents.
parent
c2844af8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
254 additions
and
254 deletions
+254
-254
Lib/mailbox.py
Lib/mailbox.py
+242
-243
Lib/shlex.py
Lib/shlex.py
+12
-11
No files found.
Lib/mailbox.py
View file @
dbbf76bd
...
...
@@ -7,7 +7,6 @@ import rfc822
import
os
class
_Mailbox
:
def
__init__
(
self
,
fp
):
self
.
fp
=
fp
self
.
seekp
=
0
...
...
@@ -35,8 +34,8 @@ class _Mailbox:
break
return
rfc822
.
Message
(
_Subfile
(
self
.
fp
,
start
,
stop
))
class
_Subfile
:
class
_Subfile
:
def
__init__
(
self
,
fp
,
start
,
stop
):
self
.
fp
=
fp
self
.
start
=
start
...
...
@@ -93,8 +92,8 @@ class _Subfile:
def
close
(
self
):
del
self
.
fp
class
UnixMailbox
(
_Mailbox
):
class
UnixMailbox
(
_Mailbox
):
def
_search_start
(
self
):
while
1
:
pos
=
self
.
fp
.
tell
()
...
...
@@ -132,8 +131,8 @@ class UnixMailbox(_Mailbox):
self
.
_regexp
=
re
.
compile
(
self
.
_fromlinepattern
)
return
self
.
_regexp
.
match
(
line
)
class
MmdfMailbox
(
_Mailbox
):
class
MmdfMailbox
(
_Mailbox
):
def
_search_start
(
self
):
while
1
:
line
=
self
.
fp
.
readline
()
...
...
@@ -152,8 +151,8 @@ class MmdfMailbox(_Mailbox):
self
.
fp
.
seek
(
pos
)
return
class
MHMailbox
:
class
MHMailbox
:
def
__init__
(
self
,
dirname
):
import
re
pat
=
re
.
compile
(
'^[0-9][0-9]*$'
)
...
...
@@ -172,8 +171,8 @@ class MHMailbox:
fp
=
open
(
os
.
path
.
join
(
self
.
dirname
,
fn
))
return
rfc822
.
Message
(
fp
)
class
Maildir
:
class
Maildir
:
# Qmail directory mailbox
def
__init__
(
self
,
dirname
):
...
...
@@ -201,8 +200,8 @@ class Maildir:
fp
=
open
(
os
.
path
.
join
(
self
.
dirname
,
fn
))
return
rfc822
.
Message
(
fp
)
class
BabylMailbox
(
_Mailbox
):
class
BabylMailbox
(
_Mailbox
):
def
_search_start
(
self
):
while
1
:
line
=
self
.
fp
.
readline
()
...
...
Lib/shlex.py
View file @
dbbf76bd
...
...
@@ -17,7 +17,8 @@ class shlex:
self
.
instream
=
sys
.
stdin
self
.
infile
=
None
self
.
commenters
=
'#'
self
.
wordchars
=
'abcdfeghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'
self
.
wordchars
=
(
'abcdfeghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'
)
self
.
whitespace
=
'
\
t
\
r
\
n
'
self
.
quotes
=
'
\
'
"'
self
.
state
=
' '
...
...
@@ -88,7 +89,7 @@ class shlex:
if
self
.
debug
>=
3
:
print
"shlex: in state"
,
repr
(
self
.
state
),
\
"I see character:"
,
repr
(
nextchar
)
if
self
.
state
==
None
:
if
self
.
state
is
None
:
self
.
token
=
''
;
# past end of file
break
elif
self
.
state
==
' '
:
...
...
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