@@ -139,14 +139,14 @@ def hooktester(count, block_size, total_size, count_holder=[0]):
139139
140140class QuotingTests (unittest .TestCase ):
141141 """Tests for urllib.quote() and urllib.quote_plus()
142-
142+
143143 According to RFC 2396 ("Uniform Resource Identifiers), to escape a
144144 character you write it as '%' + <2 character US-ASCII hex value>. The Python
145145 code of ``'%' + hex(ord(<character>))[2:]`` escapes a character properly.
146146 Case does not matter on the hex letters.
147147
148148 The various character sets specified are:
149-
149+
150150 Reserved characters : ";/?:@&=+$,"
151151 Have special meaning in URIs and must be escaped if not being used for
152152 their special meaning
@@ -160,7 +160,7 @@ class QuotingTests(unittest.TestCase):
160160 Must be escaped
161161 Unwise : "{}|\^[]`"
162162 Must be escaped
163-
163+
164164 """
165165
166166 def test_never_quote (self ):
@@ -206,7 +206,7 @@ def test_default_quoting(self):
206206 result = urllib .quote_plus (char )
207207 self .assertEqual (hexescape (char ), result ,
208208 "using quote_plus(): "
209- "%s should be escapes to %s, not %s" %
209+ "%s should be escapes to %s, not %s" %
210210 (char , hexescape (char ), result ))
211211 del should_quote
212212 partial_quote = "ab[]cd"
@@ -238,7 +238,7 @@ def test_quoting_space(self):
238238
239239class UnquotingTests (unittest .TestCase ):
240240 """Tests for unquote() and unquote_plus()
241-
241+
242242 See the doc string for quoting_Tests for details on quoting and such.
243243
244244 """
@@ -279,7 +279,7 @@ def test_unquoting_parts(self):
279279 result = urllib .unquote_plus (given )
280280 self .assertEqual (expect , result ,
281281 "using unquote_plus(): %s != %s" % (expect , result ))
282-
282+
283283 def test_unquoting_plus (self ):
284284 # Test difference between unquote() and unquote_plus()
285285 given = "are+there+spaces..."
@@ -297,15 +297,15 @@ class urlencode_Tests(unittest.TestCase):
297297
298298 def help_inputtype (self , given , test_type ):
299299 """Helper method for testing different input types.
300-
300+
301301 'given' must lead to only the pairs:
302302 * 1st, 1
303303 * 2nd, 2
304304 * 3rd, 3
305-
305+
306306 Test cannot assume anything about order. Docs make no guarantee and
307307 have possible dictionary input.
308-
308+
309309 """
310310 expect_somewhere = ["1st=1" , "2nd=2" , "3rd=3" ]
311311 result = urllib .urlencode (given )
@@ -404,7 +404,7 @@ def test_quoting(self):
404404 self .assertEqual (expect , result ,
405405 "url2pathname() failed; %s != %s" %
406406 (expect , result ))
407-
407+
408408
409409
410410def test_main ():
0 commit comments