[Python-3000-checkins] r59746 - in python/branches/py3k/Lib: logging/__init__.py logging/config.py logging/handlers.py pdb.py platform.py site.py test/regex_tests.py

georg.brandl python-3000-checkins at python.org
Sat Jan 5 21:00:56 CET 2008


Author: georg.brandl
Date: Sat Jan  5 21:00:55 2008
New Revision: 59746

Modified:
   python/branches/py3k/Lib/logging/__init__.py
   python/branches/py3k/Lib/logging/config.py
   python/branches/py3k/Lib/logging/handlers.py
   python/branches/py3k/Lib/pdb.py
   python/branches/py3k/Lib/platform.py
   python/branches/py3k/Lib/site.py
   python/branches/py3k/Lib/test/regex_tests.py
Log:
Remove several mentions of old Python versions that don't apply anymore.


Modified: python/branches/py3k/Lib/logging/__init__.py
==============================================================================
--- python/branches/py3k/Lib/logging/__init__.py	(original)
+++ python/branches/py3k/Lib/logging/__init__.py	Sat Jan  5 21:00:55 2008
@@ -18,9 +18,6 @@
 Logging package for Python. Based on PEP 282 and comments thereto in
 comp.lang.python, and influenced by Apache's log4j system.
 
-Should work under Python versions >= 1.5.2, except that source line
-information is not available unless 'sys._getframe()' is.
-
 Copyright (C) 2001-2007 Vinay Sajip. All Rights Reserved.
 
 To use, simply 'import logging' and log away!

Modified: python/branches/py3k/Lib/logging/config.py
==============================================================================
--- python/branches/py3k/Lib/logging/config.py	(original)
+++ python/branches/py3k/Lib/logging/config.py	Sat Jan  5 21:00:55 2008
@@ -19,9 +19,6 @@
 is based on PEP 282 and comments thereto in comp.lang.python, and influenced
 by Apache's log4j system.
 
-Should work under Python versions >= 1.5.2, except that source line
-information is not available unless 'sys._getframe()' is.
-
 Copyright (C) 2001-2007 Vinay Sajip. All Rights Reserved.
 
 To use, simply 'import logging' and log away!

Modified: python/branches/py3k/Lib/logging/handlers.py
==============================================================================
--- python/branches/py3k/Lib/logging/handlers.py	(original)
+++ python/branches/py3k/Lib/logging/handlers.py	Sat Jan  5 21:00:55 2008
@@ -19,9 +19,6 @@
 based on PEP 282 and comments thereto in comp.lang.python, and influenced by
 Apache's log4j system.
 
-Should work under Python versions >= 1.5.2, except that source line
-information is not available unless 'sys._getframe()' is.
-
 Copyright (C) 2001-2007 Vinay Sajip. All Rights Reserved.
 
 To use, simply 'import logging' and log away!

Modified: python/branches/py3k/Lib/pdb.py
==============================================================================
--- python/branches/py3k/Lib/pdb.py	(original)
+++ python/branches/py3k/Lib/pdb.py	Sat Jan  5 21:00:55 2008
@@ -909,12 +909,7 @@
 With a space separated list of breakpoint numbers, clear
 those breakpoints.  Without argument, clear all breaks (but
 first ask confirmation).  With a filename:lineno argument,
-clear all breaks at that line in that file.
-
-Note that the argument is different from previous versions of
-the debugger (in python distributions 1.5.1 and before) where
-a linenumber was used instead of either filename:lineno or
-breakpoint numbers.""", file=self.stdout)
+clear all breaks at that line in that file.""", file=self.stdout)
 
     def help_tbreak(self):
         print("""tbreak  same arguments as break, but breakpoint is

Modified: python/branches/py3k/Lib/platform.py
==============================================================================
--- python/branches/py3k/Lib/platform.py	(original)
+++ python/branches/py3k/Lib/platform.py	Sat Jan  5 21:00:55 2008
@@ -12,8 +12,6 @@
 #    If you find problems, please submit bug reports/patches via the
 #    Python SourceForge Project Page and assign them to "lemburg".
 #
-#    Note: Please keep this module compatible to Python 1.5.2.
-#
 #    Still needed:
 #    * more support for WinCE
 #    * support for MS-DOS (PythonDX ?)
@@ -857,22 +855,6 @@
         # Still not working...
         return default
 
-# os.path.abspath is new in Python 1.5.2:
-if not hasattr(os.path,'abspath'):
-
-    def _abspath(path,
-
-                 isabs=os.path.isabs,join=os.path.join,getcwd=os.getcwd,
-                 normpath=os.path.normpath):
-
-        if not isabs(path):
-            path = join(getcwd(), path)
-        return normpath(path)
-
-else:
-
-    _abspath = os.path.abspath
-
 def _follow_symlinks(filepath):
 
     """ In case filepath is a symlink, follow it until a

Modified: python/branches/py3k/Lib/site.py
==============================================================================
--- python/branches/py3k/Lib/site.py	(original)
+++ python/branches/py3k/Lib/site.py	Sat Jan  5 21:00:55 2008
@@ -4,12 +4,6 @@
 * This module is automatically imported during initialization. *
 ****************************************************************
 
-In earlier versions of Python (up to 1.5a3), scripts or modules that
-needed to use site-specific modules would place ``import site''
-somewhere near the top of their code.  Because of the automatic
-import, this is no longer necessary (but code that does it still
-works).
-
 This will append site-specific paths to the module search path.  On
 Unix (including Mac OSX), it starts with sys.prefix and
 sys.exec_prefix (if different) and appends

Modified: python/branches/py3k/Lib/test/regex_tests.py
==============================================================================
--- python/branches/py3k/Lib/test/regex_tests.py	(original)
+++ python/branches/py3k/Lib/test/regex_tests.py	Sat Jan  5 21:00:55 2008
@@ -1,6 +1,4 @@
 # Regex test suite and benchmark suite v1.5a2
-# Due to the use of r"aw" strings, this file will
-# only work with Python 1.5 or higher.
 
 # The 3 possible outcomes for each pattern
 [SUCCEED, FAIL, SYNTAX_ERROR] = range(3)


More information about the Python-3000-checkins mailing list