mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Merge 3.2, fix typos.
This commit is contained in:
		
						commit
						e41f0de84d
					
				
					 8 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
					@ -203,7 +203,7 @@ class AddrlistClass:
 | 
				
			||||||
    front of you.
 | 
					    front of you.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Note: this class interface is deprecated and may be removed in the future.
 | 
					    Note: this class interface is deprecated and may be removed in the future.
 | 
				
			||||||
    Use rfc822.AddressList instead.
 | 
					    Use email.utils.AddressList instead.
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self, field):
 | 
					    def __init__(self, field):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1392,7 +1392,7 @@ def Time2Internaldate(date_time):
 | 
				
			||||||
    """Convert date_time to IMAP4 INTERNALDATE representation.
 | 
					    """Convert date_time to IMAP4 INTERNALDATE representation.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Return string in form: '"DD-Mmm-YYYY HH:MM:SS +HHMM"'.  The
 | 
					    Return string in form: '"DD-Mmm-YYYY HH:MM:SS +HHMM"'.  The
 | 
				
			||||||
    date_time argument can be a number (int or float) represening
 | 
					    date_time argument can be a number (int or float) representing
 | 
				
			||||||
    seconds since epoch (as returned by time.time()), a 9-tuple
 | 
					    seconds since epoch (as returned by time.time()), a 9-tuple
 | 
				
			||||||
    representing local time (as returned by time.localtime()), or a
 | 
					    representing local time (as returned by time.localtime()), or a
 | 
				
			||||||
    double-quoted string.  In the last case, it is assumed to already
 | 
					    double-quoted string.  In the last case, it is assumed to already
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -427,7 +427,7 @@ def sort_releases(self, prefer_final=False, reverse=True, *args, **kwargs):
 | 
				
			||||||
        """Sort the results with the given properties.
 | 
					        """Sort the results with the given properties.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        The `prefer_final` argument can be used to specify if final
 | 
					        The `prefer_final` argument can be used to specify if final
 | 
				
			||||||
        distributions (eg. not dev, bet or alpha) would be prefered or not.
 | 
					        distributions (eg. not dev, beta or alpha) would be preferred or not.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Results can be inverted by using `reverse`.
 | 
					        Results can be inverted by using `reverse`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -269,7 +269,7 @@ def _is_distribution(self, link):
 | 
				
			||||||
    def _register_release(self, release=None, release_info={}):
 | 
					    def _register_release(self, release=None, release_info={}):
 | 
				
			||||||
        """Register a new release.
 | 
					        """Register a new release.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Both a release or a dict of release_info can be provided, the prefered
 | 
					        Both a release or a dict of release_info can be provided, the preferred
 | 
				
			||||||
        way (eg. the quicker) is the dict one.
 | 
					        way (eg. the quicker) is the dict one.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Return the list of existing releases for the given project.
 | 
					        Return the list of existing releases for the given project.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -295,7 +295,7 @@ def test_module(self):
 | 
				
			||||||
        self.assertEqual(x.body, body)
 | 
					        self.assertEqual(x.body, body)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_nodeclasses(self):
 | 
					    def test_nodeclasses(self):
 | 
				
			||||||
        # Zero arguments constructor explicitely allowed
 | 
					        # Zero arguments constructor explicitly allowed
 | 
				
			||||||
        x = ast.BinOp()
 | 
					        x = ast.BinOp()
 | 
				
			||||||
        self.assertEqual(x._fields, ('left', 'op', 'right'))
 | 
					        self.assertEqual(x._fields, ('left', 'op', 'right'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3222,7 +3222,7 @@ def test_no_kwargs(self):
 | 
				
			||||||
        # style defaults to %
 | 
					        # style defaults to %
 | 
				
			||||||
        self.assertIsInstance(formatter._style, logging.PercentStyle)
 | 
					        self.assertIsInstance(formatter._style, logging.PercentStyle)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # level is not explicitely set
 | 
					        # level is not explicitly set
 | 
				
			||||||
        self.assertEqual(logging.root.level, self.original_logging_level)
 | 
					        self.assertEqual(logging.root.level, self.original_logging_level)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_filename(self):
 | 
					    def test_filename(self):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -190,7 +190,7 @@ def test_pread(self):
 | 
				
			||||||
            os.write(fd, b'test')
 | 
					            os.write(fd, b'test')
 | 
				
			||||||
            os.lseek(fd, 0, os.SEEK_SET)
 | 
					            os.lseek(fd, 0, os.SEEK_SET)
 | 
				
			||||||
            self.assertEqual(b'es', posix.pread(fd, 2, 1))
 | 
					            self.assertEqual(b'es', posix.pread(fd, 2, 1))
 | 
				
			||||||
            # the first pread() shoudn't disturb the file offset
 | 
					            # the first pread() shouldn't disturb the file offset
 | 
				
			||||||
            self.assertEqual(b'te', posix.read(fd, 2))
 | 
					            self.assertEqual(b'te', posix.read(fd, 2))
 | 
				
			||||||
        finally:
 | 
					        finally:
 | 
				
			||||||
            os.close(fd)
 | 
					            os.close(fd)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -294,7 +294,7 @@ _symtable symtablemodule.c
 | 
				
			||||||
#syslog syslogmodule.c		# syslog daemon interface
 | 
					#syslog syslogmodule.c		# syslog daemon interface
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Curses support, requring the System V version of curses, often
 | 
					# Curses support, requiring the System V version of curses, often
 | 
				
			||||||
# provided by the ncurses library.  e.g. on Linux, link with -lncurses
 | 
					# provided by the ncurses library.  e.g. on Linux, link with -lncurses
 | 
				
			||||||
# instead of -lcurses).
 | 
					# instead of -lcurses).
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue