mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Whitespace normalization. Ugh, we really need to do this more often.
You might want to review this change as it's my first time. Be gentle. :-)
This commit is contained in:
parent
e47c508850
commit
0d4c06e06e
38 changed files with 386 additions and 387 deletions
|
@ -234,7 +234,7 @@ c_voidp = c_void_p # backwards compatibility (to a bug)
|
||||||
_check_size(c_void_p)
|
_check_size(c_void_p)
|
||||||
|
|
||||||
class c_bool(_SimpleCData):
|
class c_bool(_SimpleCData):
|
||||||
_type_ = "t"
|
_type_ = "t"
|
||||||
|
|
||||||
# This cache maps types to pointers to them.
|
# This cache maps types to pointers to them.
|
||||||
_pointer_type_cache = {}
|
_pointer_type_cache = {}
|
||||||
|
|
|
@ -38,9 +38,9 @@ if _os.name == 'mac':
|
||||||
import Carbon.Folders as _Folders
|
import Carbon.Folders as _Folders
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from cStringIO import StringIO as _StringIO
|
from cStringIO import StringIO as _StringIO
|
||||||
except:
|
except:
|
||||||
from StringIO import StringIO as _StringIO
|
from StringIO import StringIO as _StringIO
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import fcntl as _fcntl
|
import fcntl as _fcntl
|
||||||
|
|
|
@ -693,4 +693,4 @@ def unittest_main():
|
||||||
XmlReaderTest)
|
XmlReaderTest)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest_main()
|
unittest_main()
|
||||||
|
|
|
@ -987,4 +987,3 @@ def test_main():
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_main()
|
test_main()
|
||||||
|
|
||||||
|
|
|
@ -223,13 +223,13 @@ class Timer:
|
||||||
|
|
||||||
def timeit(stmt="pass", setup="pass", timer=default_timer,
|
def timeit(stmt="pass", setup="pass", timer=default_timer,
|
||||||
number=default_number):
|
number=default_number):
|
||||||
"""Convenience function to create Timer object and call timeit method."""
|
"""Convenience function to create Timer object and call timeit method."""
|
||||||
return Timer(stmt, setup, timer).timeit(number)
|
return Timer(stmt, setup, timer).timeit(number)
|
||||||
|
|
||||||
def repeat(stmt="pass", setup="pass", timer=default_timer,
|
def repeat(stmt="pass", setup="pass", timer=default_timer,
|
||||||
repeat=default_repeat, number=default_number):
|
repeat=default_repeat, number=default_number):
|
||||||
"""Convenience function to create Timer object and call repeat method."""
|
"""Convenience function to create Timer object and call repeat method."""
|
||||||
return Timer(stmt, setup, timer).repeat(repeat, number)
|
return Timer(stmt, setup, timer).repeat(repeat, number)
|
||||||
|
|
||||||
def main(args=None):
|
def main(args=None):
|
||||||
"""Main program, used when run as a script.
|
"""Main program, used when run as a script.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue