Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f1c48dcb
Commit
f1c48dcb
authored
May 25, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Plain Diff
Branch merge
parents
211a269b
57a1b4cf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
Doc/library/site.rst
Doc/library/site.rst
+4
-0
Tools/scripts/findnocoding.py
Tools/scripts/findnocoding.py
+2
-2
Tools/scripts/pysource.py
Tools/scripts/pysource.py
+1
-1
No files found.
Doc/library/site.rst
View file @
f1c48dcb
...
...
@@ -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.
...
...
Tools/scripts/findnocoding.py
View file @
f1c48dcb
...
...
@@ -2,7 +2,7 @@
"""List all those Python files that require a coding directive
Usage: nocoding.py dir1 [dir2...]
Usage:
find
nocoding.py dir1 [dir2...]
"""
__author__
=
"Oleg Broytmann, Georg Brandl"
...
...
@@ -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
...
...
Tools/scripts/pysource.py
View file @
f1c48dcb
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment