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
b4a1b8c5
Commit
b4a1b8c5
authored
Jan 19, 2009
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a typo in some code that is not tested or supported yet.
Closes issue 4993. Thanks Antoine Pitrou for the catch.
parent
f99d2431
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+1
-1
No files found.
Lib/importlib/_bootstrap.py
View file @
b4a1b8c5
...
...
@@ -431,7 +431,7 @@ class _PyFileLoader(object):
if
source_path
is
None
:
return
None
import
tokenize
with
closing
(
_fileio_FileIO
(
source_path
,
'r'
))
as
file
:
with
closing
(
_fileio
.
_FileIO
(
source_path
,
'r'
))
as
file
:
encoding
,
lines
=
tokenize
.
detect_encoding
(
file
.
readline
)
# XXX Will fail when passed to compile() if the encoding is
# anything other than UTF-8.
...
...
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