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

Skip to content

Commit f5f32b4

Browse files
committed
Whitespace normalization.
1 parent c48a740 commit f5f32b4

6 files changed

Lines changed: 53 additions & 53 deletions

File tree

Lib/plat-freebsd7/IN.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
__CC_SUPPORTS_VARADIC_XXX = 1
2424
__CC_SUPPORTS_DYNAMIC_ARRAY_INIT = 1
2525
__CC_INT_IS_32BIT = 1
26-
def __P(protos): return protos
26+
def __P(protos): return protos
2727

28-
def __STRING(x): return #x
28+
def __STRING(x): return #x
2929

30-
def __XSTRING(x): return __STRING(x)
30+
def __XSTRING(x): return __STRING(x)
3131

32-
def __P(protos): return ()
32+
def __P(protos): return ()
3333

3434
def __STRING(x): return "x"
3535

Lib/test/test_enumerate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def f():
193193
else:
194194
self.fail("non-callable __reversed__ didn't raise!")
195195
self.assertEqual(rc, sys.getrefcount(r))
196-
196+
197197

198198
def test_main(verbose=None):
199199
testclasses = (EnumerateTestCase, SubclassTestCase, TestEmpty, TestBig,

Lib/test/test_urllib2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_trivial(self):
4040

4141
buf = f.read()
4242
f.close()
43-
43+
4444
def test_statudict(self):
4545
# test the new-in-2.5 httpresponses dictionary
4646
self.assertEquals(urllib2.httpresponses[404], "Not Found")

Lib/urllib2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,15 +1298,15 @@ def build_opener(self):
12981298
httpresponses = {
12991299
100: 'Continue',
13001300
101: 'Switching Protocols',
1301-
1301+
13021302
200: 'OK',
13031303
201: 'Created',
13041304
202: 'Accepted',
13051305
203: 'Non-Authoritative Information',
13061306
204: 'No Content',
13071307
205: 'Reset Content',
13081308
206: 'Partial Content',
1309-
1309+
13101310
300: 'Multiple Choices',
13111311
301: 'Moved Permanently',
13121312
302: 'Found',
@@ -1315,7 +1315,7 @@ def build_opener(self):
13151315
305: 'Use Proxy',
13161316
306: '(Unused)',
13171317
307: 'Temporary Redirect',
1318-
1318+
13191319
400: 'Bad Request',
13201320
401: 'Unauthorized',
13211321
402: 'Payment Required',
@@ -1334,7 +1334,7 @@ def build_opener(self):
13341334
415: 'Unsupported Media Type',
13351335
416: 'Requested Range Not Satisfiable',
13361336
417: 'Expectation Failed',
1337-
1337+
13381338
500: 'Internal Server Error',
13391339
501: 'Not Implemented',
13401340
502: 'Bad Gateway',

Mac/Modules/file/filesupport.py

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -205,44 +205,44 @@ def getargsCheck(self, name):
205205
static OSErr
206206
_PyMac_GetFullPathname(FSSpec *fss, char *path, int len)
207207
{
208-
FSRef fsr;
209-
OSErr err;
210-
211-
*path = '\0';
212-
err = FSpMakeFSRef(fss, &fsr);
213-
if (err == fnfErr) {
214-
/* FSSpecs can point to non-existing files, fsrefs can't. */
215-
FSSpec fss2;
216-
int tocopy;
217-
218-
err = FSMakeFSSpec(fss->vRefNum, fss->parID, "", &fss2);
219-
if (err)
220-
return err;
221-
err = FSpMakeFSRef(&fss2, &fsr);
222-
if (err)
223-
return err;
224-
err = (OSErr)FSRefMakePath(&fsr, path, len-1);
225-
if (err)
226-
return err;
227-
/* This part is not 100% safe: we append the filename part, but
228-
** I'm not sure that we don't run afoul of the various 8bit
229-
** encodings here. Will have to look this up at some point...
230-
*/
231-
strcat(path, "/");
232-
tocopy = fss->name[0];
233-
if ((strlen(path) + tocopy) >= len)
234-
tocopy = len - strlen(path) - 1;
235-
if (tocopy > 0)
236-
strncat(path, fss->name+1, tocopy);
237-
}
238-
else {
239-
if (err)
240-
return err;
241-
err = (OSErr)FSRefMakePath(&fsr, path, len);
242-
if (err)
243-
return err;
244-
}
245-
return 0;
208+
FSRef fsr;
209+
OSErr err;
210+
211+
*path = '\0';
212+
err = FSpMakeFSRef(fss, &fsr);
213+
if (err == fnfErr) {
214+
/* FSSpecs can point to non-existing files, fsrefs can't. */
215+
FSSpec fss2;
216+
int tocopy;
217+
218+
err = FSMakeFSSpec(fss->vRefNum, fss->parID, "", &fss2);
219+
if (err)
220+
return err;
221+
err = FSpMakeFSRef(&fss2, &fsr);
222+
if (err)
223+
return err;
224+
err = (OSErr)FSRefMakePath(&fsr, path, len-1);
225+
if (err)
226+
return err;
227+
/* This part is not 100% safe: we append the filename part, but
228+
** I'm not sure that we don't run afoul of the various 8bit
229+
** encodings here. Will have to look this up at some point...
230+
*/
231+
strcat(path, "/");
232+
tocopy = fss->name[0];
233+
if ((strlen(path) + tocopy) >= len)
234+
tocopy = len - strlen(path) - 1;
235+
if (tocopy > 0)
236+
strncat(path, fss->name+1, tocopy);
237+
}
238+
else {
239+
if (err)
240+
return err;
241+
err = (OSErr)FSRefMakePath(&fsr, path, len);
242+
if (err)
243+
return err;
244+
}
245+
return 0;
246246
}
247247
248248
"""

Tools/bgen/bgen/scantools.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def closescan(self):
374374
tmp = self.scanmine and self.scanfile
375375
self.scanfile = None
376376
if tmp: tmp.close()
377-
377+
378378
def closehtml(self):
379379
if self.htmlfile: self.htmlfile.write(ENDHTMLREPORT)
380380
tmp = self.htmlmine and self.htmlfile
@@ -415,7 +415,7 @@ def sethtmloutput(self, htmlfile):
415415
self.htmlfile = file
416416
self.htmlmine = mine
417417
self.htmlfile.write(BEGINHTMLREPORT)
418-
418+
419419
def openoutput(self, filename):
420420
try:
421421
file = open(filename, 'w')
@@ -728,10 +728,10 @@ def generate(self, tp, name, arglist, modifiers=[]):
728728
classname, listname = self.destination(tp, name, arglist, modifiers)
729729
else:
730730
classname, listname = self.destination(tp, name, arglist)
731-
if not classname or not listname:
731+
if not classname or not listname:
732732
self.htmlreport("*** no output generated: self.destination() returned None", klass="blacklisted")
733733
return
734-
if not self.specfile:
734+
if not self.specfile:
735735
self.htmlreport("*** no output generated: no output file specified", klass="blacklisted")
736736
return
737737
self.specfile.write("f = %s(%s, %r,\n" % (classname, tp, name))
@@ -800,7 +800,7 @@ def htmlreport(self, line, klass=None, ranges=None):
800800
if not line or line[-1] != '\n':
801801
oline += '\n'
802802
self.htmlfile.write(oline)
803-
803+
804804
class Scanner_PreUH3(Scanner):
805805
"""Scanner for Universal Headers before release 3"""
806806
def initpatterns(self):

0 commit comments

Comments
 (0)