Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 280488b

Browse files
committed
Whitespace normalization.
1 parent fa8dd5f commit 280488b

9 files changed

Lines changed: 15 additions & 15 deletions

File tree

Lib/dis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def disassemble(co, lasti=-1):
6868
table_index += 1
6969
addr = 0
7070
line_incr = 0
71-
71+
7272
labels = findlabels(code)
7373
n = len(code)
7474
i = 0

Lib/email/Charset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def _is_unicode(x):
1111
from types import UnicodeType
1212
def _is_unicode(x):
1313
return isinstance(x, UnicodeType)
14-
14+
1515
from email.Encoders import encode_7or8bit
1616
import email.base64MIME
1717
import email.quopriMIME

Lib/email/Message.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ def _formatparam(param, value=None, quote=1):
5252

5353
def _unquotevalue(value):
5454
if isinstance(value, TupleType):
55-
return (value[0], value[1], Utils.unquote(value[2]))
55+
return (value[0], value[1], Utils.unquote(value[2]))
5656
else:
57-
return Utils.unquote(value)
57+
return Utils.unquote(value)
5858

5959

60-
60+
6161
class Message:
6262
"""Basic message object for use inside the object tree.
6363

Lib/email/Parser.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _parsebody(self, container, fp):
129129
# boundary.
130130
separator = '--' + boundary
131131
payload = fp.read()
132-
# We use an RE here because boundaries can have trailing
132+
# We use an RE here because boundaries can have trailing
133133
# whitespace.
134134
mo = re.search(
135135
r'(?P<sep>' + re.escape(separator) + r')(?P<ws>[ \t]*)',
@@ -176,15 +176,15 @@ def _parsebody(self, container, fp):
176176
terminator = len(payload)
177177
# We split the textual payload on the boundary separator, which
178178
# includes the trailing newline. If the container is a
179-
# multipart/digest then the subparts are by default message/rfc822
180-
# instead of text/plain. In that case, they'll have a optional
181-
# block of MIME headers, then an empty line followed by the
179+
# multipart/digest then the subparts are by default message/rfc822
180+
# instead of text/plain. In that case, they'll have a optional
181+
# block of MIME headers, then an empty line followed by the
182182
# message headers.
183183
parts = re.split(
184184
linesep + re.escape(separator) + r'[ \t]*' + linesep,
185185
payload[start:terminator])
186186
for part in parts:
187-
if isdigest:
187+
if isdigest:
188188
if part[0] == linesep:
189189
# There's no header block so create an empty message
190190
# object as the container, and lop off the newline so

Lib/encodings/string_escape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Codec(codecs.Codec):
1414

1515
class StreamWriter(Codec,codecs.StreamWriter):
1616
pass
17-
17+
1818
class StreamReader(Codec,codecs.StreamReader):
1919
pass
2020

Lib/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def execRcLines(self):
105105
if len(line) > 0 and line[0] != '#':
106106
self.onecmd(line)
107107

108-
# Override Bdb methods
108+
# Override Bdb methods
109109

110110
def user_call(self, frame, argument_list):
111111
"""This method is called when there is the remote possibility

Tools/idle/CallTips.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def get_object_at_cursor(self,
7979
wordchars="._" + string.ascii_letters + string.digits):
8080
# Usage of ascii_letters is necessary to avoid UnicodeErrors
8181
# if chars contains non-ASCII.
82-
82+
8383
# XXX - This needs to be moved to a better place
8484
# so the "." attribute lookup code can also use it.
8585
text = self.text

Tools/idle/IOBinding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def decode(self, chars):
209209
"installation. The file may not display correctly" % name,
210210
master = self.text)
211211
enc = None
212-
212+
213213
if enc:
214214
try:
215215
return unicode(chars, enc)

Tools/idle/ScriptBinding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ScriptBinding:
5353
def __init__(self, editwin):
5454
if not editwin.runnable:
5555
self.menudefs = []
56-
self.keydefs = {}
56+
self.keydefs = {}
5757
self.editwin = editwin
5858
# Provide instance variables referenced by Debugger
5959
# XXX This should be done differently

0 commit comments

Comments
 (0)