Skip to content

Commit

Permalink
Branch merge
Browse files Browse the repository at this point in the history
  • Loading branch information
merwok committed May 25, 2011
2 parents 559b5f1 + 17b60f0 commit 0f67a99
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Doc/library/site.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ empty, and the path manipulations are skipped; however the import of
unless the :program:`python` interpreter was started with the :option:`-S`
flag.

.. versionchanged:: 3.3
This function used to be called unconditionnally.


.. function:: addsitedir(sitedir, known_paths=None)

Adds a directory to sys.path and processes its pth files.
Expand Down
4 changes: 2 additions & 2 deletions Tools/scripts/findnocoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""List all those Python files that require a coding directive
Usage: nocoding.py dir1 [dir2...]
Usage: findnocoding.py dir1 [dir2...]
"""

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

def needs_declaration(fullpath):
try:
infile = open(fullpath, 'rU')
infile = open(fullpath)
except IOError: # Oops, the file was removed - ignore it
return None

Expand Down
2 changes: 1 addition & 1 deletion Tools/scripts/pysource.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _open(fullpath):
return None

try:
return open(fullpath, 'rU')
return open(fullpath)
except IOError as err: # Access denied, or a special file - ignore it
print_debug("%s: access denied: %s" % (fullpath, err))
return None
Expand Down

0 comments on commit 0f67a99

Please sign in to comment.