mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
Whitespace normalization.
This commit is contained in:
parent
0822ff7cca
commit
0eadaac7dc
39 changed files with 127 additions and 144 deletions
|
@ -528,4 +528,3 @@ def _insensitiveindex(lst, findme):
|
||||||
return key
|
return key
|
||||||
else:
|
else:
|
||||||
raise ValueError("value not in list")
|
raise ValueError("value not in list")
|
||||||
|
|
||||||
|
|
|
@ -192,4 +192,3 @@ class DB(DictMixin):
|
||||||
if db.version() >= (4,1):
|
if db.version() >= (4,1):
|
||||||
def set_encrypt(self, *args, **kwargs):
|
def set_encrypt(self, *args, **kwargs):
|
||||||
return apply(self._cobj.set_encrypt, args, kwargs)
|
return apply(self._cobj.set_encrypt, args, kwargs)
|
||||||
|
|
||||||
|
|
|
@ -296,6 +296,3 @@ class DBShelfCursor:
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
from csv import *
|
from csv import *
|
||||||
|
|
||||||
|
|
|
@ -284,6 +284,3 @@ class Sniffer:
|
||||||
hasHeader -= 1
|
hasHeader -= 1
|
||||||
|
|
||||||
return hasHeader > 0
|
return hasHeader > 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -120,4 +120,3 @@ def search_function(encoding):
|
||||||
|
|
||||||
# Register the search_function in the Python codec registry
|
# Register the search_function in the Python codec registry
|
||||||
codecs.register(search_function)
|
codecs.register(search_function)
|
||||||
|
|
||||||
|
|
|
@ -1380,4 +1380,3 @@ def _match_abbrev (s, wordmap):
|
||||||
# which will become a factory function when there are many Option
|
# which will become a factory function when there are many Option
|
||||||
# classes.
|
# classes.
|
||||||
make_option = Option
|
make_option = Option
|
||||||
|
|
||||||
|
|
|
@ -270,4 +270,3 @@ def in_table_d1(code):
|
||||||
|
|
||||||
def in_table_d2(code):
|
def in_table_d2(code):
|
||||||
return unicodedata.bidirectional(code) == "L"
|
return unicodedata.bidirectional(code) == "L"
|
||||||
|
|
||||||
|
|
|
@ -631,4 +631,3 @@ class MixinStrUserStringTest:
|
||||||
|
|
||||||
self.checkraises(TypeError, 'xyz', 'decode', 42)
|
self.checkraises(TypeError, 'xyz', 'decode', 42)
|
||||||
self.checkraises(TypeError, 'xyz', 'encode', 42)
|
self.checkraises(TypeError, 'xyz', 'encode', 42)
|
||||||
|
|
||||||
|
|
|
@ -92,4 +92,3 @@ def test_main():
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_main()
|
test_main()
|
||||||
|
|
||||||
|
|
|
@ -63,4 +63,3 @@ try:
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
if verbose:
|
if verbose:
|
||||||
print "KeyboardInterrupt (assume the alarm() went off)"
|
print "KeyboardInterrupt (assume the alarm() went off)"
|
||||||
|
|
||||||
|
|
|
@ -86,5 +86,3 @@ verify(not in_table_d2(u"\u0040"))
|
||||||
# h = sha.sha()
|
# h = sha.sha()
|
||||||
# h.update(data)
|
# h.update(data)
|
||||||
# print p,h.hexdigest()
|
# print p,h.hexdigest()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue