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

Skip to content

Commit 0f67a99

Browse files
committed
Branch merge
2 parents 559b5f1 + 17b60f0 commit 0f67a99

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

Doc/library/site.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ empty, and the path manipulations are skipped; however the import of
129129
unless the :program:`python` interpreter was started with the :option:`-S`
130130
flag.
131131

132+
.. versionchanged:: 3.3
133+
This function used to be called unconditionnally.
134+
135+
132136
.. function:: addsitedir(sitedir, known_paths=None)
133137

134138
Adds a directory to sys.path and processes its pth files.

Tools/scripts/findnocoding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""List all those Python files that require a coding directive
44
5-
Usage: nocoding.py dir1 [dir2...]
5+
Usage: findnocoding.py dir1 [dir2...]
66
"""
77

88
__author__ = "Oleg Broytmann, Georg Brandl"
@@ -50,7 +50,7 @@ def has_correct_encoding(text, codec):
5050

5151
def needs_declaration(fullpath):
5252
try:
53-
infile = open(fullpath, 'rU')
53+
infile = open(fullpath)
5454
except IOError: # Oops, the file was removed - ignore it
5555
return None
5656

Tools/scripts/pysource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _open(fullpath):
4242
return None
4343

4444
try:
45-
return open(fullpath, 'rU')
45+
return open(fullpath)
4646
except IOError as err: # Access denied, or a special file - ignore it
4747
print_debug("%s: access denied: %s" % (fullpath, err))
4848
return None

0 commit comments

Comments
 (0)