summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-02-15 23:56:39 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-02-15 23:56:39 (GMT)
commit0e6d213177dd571dd634d286ae45c38eb06d63b9 (patch)
treec8a99a84c31512ce0524bdfadb6020443becd238 /Lib
parentb61ff2982a9cc59073588676a9a0c1f97651313f (diff)
downloadcpython-0e6d213177dd571dd634d286ae45c38eb06d63b9.zip
cpython-0e6d213177dd571dd634d286ae45c38eb06d63b9.tar.gz
cpython-0e6d213177dd571dd634d286ae45c38eb06d63b9.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/random.py2
-rw-r--r--Lib/robotparser.py2
-rw-r--r--Lib/test/test_scope.py8
-rw-r--r--Lib/test/test_symtable.py1
4 files changed, 6 insertions, 7 deletions
diff --git a/Lib/random.py b/Lib/random.py
index efaf7d6..1fe0b82 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -81,7 +81,7 @@ __all__ = ["Random","seed","random","uniform","randint","choice",
"cunifvariate","expovariate","vonmisesvariate","gammavariate",
"stdgamma","gauss","betavariate","paretovariate","weibullvariate",
"getstate","setstate","jumpahead","whseed"]
-
+
def _verify(name, expected):
computed = eval(name)
if abs(computed - expected) > 1e-7:
diff --git a/Lib/robotparser.py b/Lib/robotparser.py
index ff25dfe..c5943d0 100644
--- a/Lib/robotparser.py
+++ b/Lib/robotparser.py
@@ -201,7 +201,7 @@ class URLopener(urllib.FancyURLopener):
self.errcode = 200
self.tries = 0
self.maxtries = 10
-
+
def http_error_default(self, url, fp, errcode, errmsg, headers):
self.errcode = errcode
return urllib.FancyURLopener.http_error_default(self, url, fp, errcode,
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py
index a58be00..7fd561b 100644
--- a/Lib/test/test_scope.py
+++ b/Lib/test/test_scope.py
@@ -207,7 +207,7 @@ check_syntax("""def unoptimized_clash2():
return f
""")
-# XXX could allow this for exec with const argument, but what's the point
+# XXX could allow this for exec with const argument, but what's the point
check_syntax("""def error(y):
exec "a = 1"
def f(x):
@@ -225,7 +225,7 @@ check_syntax("""def f():
def g():
from string import *
return strip # global or local?
-""")
+""")
# and verify a few cases that should work
@@ -302,9 +302,9 @@ def makeReturner(*lst):
def returner():
return lst
return returner
-
+
verify(makeReturner(1,2,3)() == (1,2,3))
-
+
def makeReturner2(**kwargs):
def returner():
return kwargs
diff --git a/Lib/test/test_symtable.py b/Lib/test/test_symtable.py
index c513308..56d772e 100644
--- a/Lib/test/test_symtable.py
+++ b/Lib/test/test_symtable.py
@@ -6,4 +6,3 @@ symbols = _symtable.symtable("def f(x): return x", "?", "exec")
verify(symbols[0].name == "global")
verify(len([ste for ste in symbols.values() if ste.name == "f"]) == 1)
-