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
b56fc483
Commit
b56fc483
authored
Oct 16, 2012
by
Trent Nelson
Browse files
Options
Browse Files
Download
Plain Diff
Merge heads.
parents
75f80200
09b14ebf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1856 additions
and
1846 deletions
+1856
-1846
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+7
-7
Misc/NEWS
Misc/NEWS
+4
-0
Python/importlib.h
Python/importlib.h
+1845
-1839
No files found.
Lib/importlib/_bootstrap.py
View file @
b56fc483
...
...
@@ -1066,17 +1066,17 @@ class SourceFileLoader(FileLoader, SourceLoader):
except
FileExistsError
:
# Probably another Python process already created the dir.
continue
except
PermissionError
:
# If can't get proper access, then just forget about writing
# the data.
except
OSError
as
exc
:
# Could be a permission error, read-only filesystem: just forget
# about writing the data.
_verbose_message
(
'could not create {!r}: {!r}'
,
parent
,
exc
)
return
try
:
_write_atomic
(
path
,
data
,
_mode
)
_verbose_message
(
'created {!r}'
,
path
)
except
(
PermissionError
,
FileExistsError
):
# Don't worry if you can't write bytecode or someone is writing
# it at the same time.
pass
except
OSError
as
exc
:
# Same as above: just don't write the bytecode.
_verbose_message
(
'could not create {!r}: {!r}'
,
path
,
exc
)
class
SourcelessFileLoader
(
FileLoader
,
_LoaderBasics
):
...
...
Misc/NEWS
View file @
b56fc483
...
...
@@ -127,6 +127,10 @@ Tests
Build
-----
-
Issue
#
15833
:
Fix
a
regression
in
3.3
that
resulted
in
exceptions
being
raised
if
importlib
failed
to
write
byte
-
compiled
files
.
This
affected
attempts
to
build
Python
out
-
of
-
tree
from
a
read
-
only
source
directory
.
-
Issue
#
15923
:
Fix
a
mistake
in
``
asdl_c
.
py
``
that
resulted
in
a
TypeError
after
2801
bf875a24
(
see
#
15801
).
...
...
Python/importlib.h
View file @
b56fc483
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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