Skip to content

Commit d348b25

Browse files
committed
Remove several mentions of old Python versions that don't apply anymore.
1 parent 84df79b commit d348b25

File tree

7 files changed

+1
-41
lines changed

7 files changed

+1
-41
lines changed

Lib/logging/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
Logging package for Python. Based on PEP 282 and comments thereto in
1919
comp.lang.python, and influenced by Apache's log4j system.
2020
21-
Should work under Python versions >= 1.5.2, except that source line
22-
information is not available unless 'sys._getframe()' is.
23-
2421
Copyright (C) 2001-2007 Vinay Sajip. All Rights Reserved.
2522
2623
To use, simply 'import logging' and log away!

Lib/logging/config.py

-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
is based on PEP 282 and comments thereto in comp.lang.python, and influenced
2020
by Apache's log4j system.
2121
22-
Should work under Python versions >= 1.5.2, except that source line
23-
information is not available unless 'sys._getframe()' is.
24-
2522
Copyright (C) 2001-2007 Vinay Sajip. All Rights Reserved.
2623
2724
To use, simply 'import logging' and log away!

Lib/logging/handlers.py

-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
based on PEP 282 and comments thereto in comp.lang.python, and influenced by
2020
Apache's log4j system.
2121
22-
Should work under Python versions >= 1.5.2, except that source line
23-
information is not available unless 'sys._getframe()' is.
24-
2522
Copyright (C) 2001-2007 Vinay Sajip. All Rights Reserved.
2623
2724
To use, simply 'import logging' and log away!

Lib/pdb.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -909,12 +909,7 @@ def help_cl(self):
909909
With a space separated list of breakpoint numbers, clear
910910
those breakpoints. Without argument, clear all breaks (but
911911
first ask confirmation). With a filename:lineno argument,
912-
clear all breaks at that line in that file.
913-
914-
Note that the argument is different from previous versions of
915-
the debugger (in python distributions 1.5.1 and before) where
916-
a linenumber was used instead of either filename:lineno or
917-
breakpoint numbers.""", file=self.stdout)
912+
clear all breaks at that line in that file.""", file=self.stdout)
918913

919914
def help_tbreak(self):
920915
print("""tbreak same arguments as break, but breakpoint is

Lib/platform.py

-18
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# If you find problems, please submit bug reports/patches via the
1313
# Python SourceForge Project Page and assign them to "lemburg".
1414
#
15-
# Note: Please keep this module compatible to Python 1.5.2.
16-
#
1715
# Still needed:
1816
# * more support for WinCE
1917
# * support for MS-DOS (PythonDX ?)
@@ -857,22 +855,6 @@ def _node(default=''):
857855
# Still not working...
858856
return default
859857

860-
# os.path.abspath is new in Python 1.5.2:
861-
if not hasattr(os.path,'abspath'):
862-
863-
def _abspath(path,
864-
865-
isabs=os.path.isabs,join=os.path.join,getcwd=os.getcwd,
866-
normpath=os.path.normpath):
867-
868-
if not isabs(path):
869-
path = join(getcwd(), path)
870-
return normpath(path)
871-
872-
else:
873-
874-
_abspath = os.path.abspath
875-
876858
def _follow_symlinks(filepath):
877859

878860
""" In case filepath is a symlink, follow it until a

Lib/site.py

-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
* This module is automatically imported during initialization. *
55
****************************************************************
66
7-
In earlier versions of Python (up to 1.5a3), scripts or modules that
8-
needed to use site-specific modules would place ``import site''
9-
somewhere near the top of their code. Because of the automatic
10-
import, this is no longer necessary (but code that does it still
11-
works).
12-
137
This will append site-specific paths to the module search path. On
148
Unix (including Mac OSX), it starts with sys.prefix and
159
sys.exec_prefix (if different) and appends

Lib/test/regex_tests.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# Regex test suite and benchmark suite v1.5a2
2-
# Due to the use of r"aw" strings, this file will
3-
# only work with Python 1.5 or higher.
42

53
# The 3 possible outcomes for each pattern
64
[SUCCEED, FAIL, SYNTAX_ERROR] = range(3)

0 commit comments

Comments
 (0)