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

Skip to content

Commit e41f0de

Browse files
committed
Merge 3.2, fix typos.
2 parents c178d9b + 992d9e0 commit e41f0de

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

Lib/email/_parseaddr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class AddrlistClass:
203203
front of you.
204204
205205
Note: this class interface is deprecated and may be removed in the future.
206-
Use rfc822.AddressList instead.
206+
Use email.utils.AddressList instead.
207207
"""
208208

209209
def __init__(self, field):

Lib/imaplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ def Time2Internaldate(date_time):
13921392
"""Convert date_time to IMAP4 INTERNALDATE representation.
13931393
13941394
Return string in form: '"DD-Mmm-YYYY HH:MM:SS +HHMM"'. The
1395-
date_time argument can be a number (int or float) represening
1395+
date_time argument can be a number (int or float) representing
13961396
seconds since epoch (as returned by time.time()), a 9-tuple
13971397
representing local time (as returned by time.localtime()), or a
13981398
double-quoted string. In the last case, it is assumed to already

Lib/packaging/pypi/dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def sort_releases(self, prefer_final=False, reverse=True, *args, **kwargs):
427427
"""Sort the results with the given properties.
428428
429429
The `prefer_final` argument can be used to specify if final
430-
distributions (eg. not dev, bet or alpha) would be prefered or not.
430+
distributions (eg. not dev, beta or alpha) would be preferred or not.
431431
432432
Results can be inverted by using `reverse`.
433433

Lib/packaging/pypi/simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def _is_distribution(self, link):
269269
def _register_release(self, release=None, release_info={}):
270270
"""Register a new release.
271271
272-
Both a release or a dict of release_info can be provided, the prefered
272+
Both a release or a dict of release_info can be provided, the preferred
273273
way (eg. the quicker) is the dict one.
274274
275275
Return the list of existing releases for the given project.

Lib/test/test_ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def test_module(self):
295295
self.assertEqual(x.body, body)
296296

297297
def test_nodeclasses(self):
298-
# Zero arguments constructor explicitely allowed
298+
# Zero arguments constructor explicitly allowed
299299
x = ast.BinOp()
300300
self.assertEqual(x._fields, ('left', 'op', 'right'))
301301

Lib/test/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3222,7 +3222,7 @@ def test_no_kwargs(self):
32223222
# style defaults to %
32233223
self.assertIsInstance(formatter._style, logging.PercentStyle)
32243224

3225-
# level is not explicitely set
3225+
# level is not explicitly set
32263226
self.assertEqual(logging.root.level, self.original_logging_level)
32273227

32283228
def test_filename(self):

Lib/test/test_posix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def test_pread(self):
190190
os.write(fd, b'test')
191191
os.lseek(fd, 0, os.SEEK_SET)
192192
self.assertEqual(b'es', posix.pread(fd, 2, 1))
193-
# the first pread() shoudn't disturb the file offset
193+
# the first pread() shouldn't disturb the file offset
194194
self.assertEqual(b'te', posix.read(fd, 2))
195195
finally:
196196
os.close(fd)

Modules/Setup.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ _symtable symtablemodule.c
294294
#syslog syslogmodule.c # syslog daemon interface
295295

296296

297-
# Curses support, requring the System V version of curses, often
297+
# Curses support, requiring the System V version of curses, often
298298
# provided by the ncurses library. e.g. on Linux, link with -lncurses
299299
# instead of -lcurses).
300300
#

0 commit comments

Comments
 (0)