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
f99b8162
Commit
f99b8162
authored
Mar 15, 2006
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
13ed60b5
Changes
50
Hide whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
12 additions
and
58 deletions
+12
-58
Lib/encodings/__init__.py
Lib/encodings/__init__.py
+3
-3
Lib/encodings/cp037.py
Lib/encodings/cp037.py
+0
-1
Lib/encodings/cp1006.py
Lib/encodings/cp1006.py
+0
-1
Lib/encodings/cp1026.py
Lib/encodings/cp1026.py
+0
-1
Lib/encodings/cp1140.py
Lib/encodings/cp1140.py
+0
-1
Lib/encodings/cp1250.py
Lib/encodings/cp1250.py
+0
-1
Lib/encodings/cp1251.py
Lib/encodings/cp1251.py
+0
-1
Lib/encodings/cp1252.py
Lib/encodings/cp1252.py
+0
-1
Lib/encodings/cp1253.py
Lib/encodings/cp1253.py
+0
-1
Lib/encodings/cp1254.py
Lib/encodings/cp1254.py
+0
-1
Lib/encodings/cp1255.py
Lib/encodings/cp1255.py
+0
-1
Lib/encodings/cp1256.py
Lib/encodings/cp1256.py
+0
-1
Lib/encodings/cp1257.py
Lib/encodings/cp1257.py
+0
-1
Lib/encodings/cp1258.py
Lib/encodings/cp1258.py
+0
-1
Lib/encodings/cp424.py
Lib/encodings/cp424.py
+0
-1
Lib/encodings/cp500.py
Lib/encodings/cp500.py
+0
-1
Lib/encodings/cp856.py
Lib/encodings/cp856.py
+0
-1
Lib/encodings/cp874.py
Lib/encodings/cp874.py
+0
-1
Lib/encodings/cp875.py
Lib/encodings/cp875.py
+0
-1
Lib/encodings/iso8859_1.py
Lib/encodings/iso8859_1.py
+0
-1
Lib/encodings/iso8859_10.py
Lib/encodings/iso8859_10.py
+0
-1
Lib/encodings/iso8859_11.py
Lib/encodings/iso8859_11.py
+0
-1
Lib/encodings/iso8859_13.py
Lib/encodings/iso8859_13.py
+0
-1
Lib/encodings/iso8859_14.py
Lib/encodings/iso8859_14.py
+0
-1
Lib/encodings/iso8859_15.py
Lib/encodings/iso8859_15.py
+0
-1
Lib/encodings/iso8859_16.py
Lib/encodings/iso8859_16.py
+0
-1
Lib/encodings/iso8859_2.py
Lib/encodings/iso8859_2.py
+0
-1
Lib/encodings/iso8859_3.py
Lib/encodings/iso8859_3.py
+0
-1
Lib/encodings/iso8859_4.py
Lib/encodings/iso8859_4.py
+0
-1
Lib/encodings/iso8859_5.py
Lib/encodings/iso8859_5.py
+0
-1
Lib/encodings/iso8859_6.py
Lib/encodings/iso8859_6.py
+0
-1
Lib/encodings/iso8859_7.py
Lib/encodings/iso8859_7.py
+0
-1
Lib/encodings/iso8859_8.py
Lib/encodings/iso8859_8.py
+0
-1
Lib/encodings/iso8859_9.py
Lib/encodings/iso8859_9.py
+0
-1
Lib/encodings/koi8_r.py
Lib/encodings/koi8_r.py
+0
-1
Lib/encodings/koi8_u.py
Lib/encodings/koi8_u.py
+0
-1
Lib/encodings/latin_1.py
Lib/encodings/latin_1.py
+0
-1
Lib/encodings/mac_centeuro.py
Lib/encodings/mac_centeuro.py
+0
-1
Lib/encodings/mac_croatian.py
Lib/encodings/mac_croatian.py
+0
-1
Lib/encodings/mac_cyrillic.py
Lib/encodings/mac_cyrillic.py
+0
-1
Lib/encodings/mac_farsi.py
Lib/encodings/mac_farsi.py
+0
-1
Lib/encodings/mac_greek.py
Lib/encodings/mac_greek.py
+0
-1
Lib/encodings/mac_iceland.py
Lib/encodings/mac_iceland.py
+0
-1
Lib/encodings/mac_roman.py
Lib/encodings/mac_roman.py
+0
-1
Lib/encodings/mac_romanian.py
Lib/encodings/mac_romanian.py
+0
-1
Lib/encodings/mac_turkish.py
Lib/encodings/mac_turkish.py
+0
-1
Lib/encodings/tis_620.py
Lib/encodings/tis_620.py
+0
-1
Lib/encodings/utf_7.py
Lib/encodings/utf_7.py
+1
-1
Lib/runpy.py
Lib/runpy.py
+5
-5
Lib/test/test_runpy.py
Lib/test/test_runpy.py
+3
-3
No files found.
Lib/encodings/__init__.py
View file @
f99b8162
...
...
@@ -117,9 +117,9 @@ def search_function(encoding):
entry
=
getregentry
()
if
not
isinstance
(
entry
,
codecs
.
CodecInfo
):
if
not
4
<=
len
(
entry
)
<=
7
:
raise
CodecRegistryError
,
\
'module "%s" (%s) failed to register'
%
\
(
mod
.
__name__
,
mod
.
__file__
)
raise
CodecRegistryError
,
\
'module "%s" (%s) failed to register'
%
\
(
mod
.
__name__
,
mod
.
__file__
)
if
not
callable
(
entry
[
0
])
or
\
not
callable
(
entry
[
1
])
or
\
(
entry
[
2
]
is
not
None
and
not
callable
(
entry
[
2
]))
or
\
...
...
Lib/encodings/cp037.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x00FE
:
0x8E
,
# LATIN SMALL LETTER THORN (ICELANDIC)
0x00FF
:
0xDF
,
# LATIN SMALL LETTER Y WITH DIAERESIS
}
Lib/encodings/cp1006.py
View file @
f99b8162
...
...
@@ -562,4 +562,3 @@ encoding_map = {
0xFEF2
:
0xFA
,
# ARABIC LETTER YEH FINAL FORM
0xFEF3
:
0xFB
,
# ARABIC LETTER YEH INITIAL FORM
}
Lib/encodings/cp1026.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x015E
:
0x7C
,
# LATIN CAPITAL LETTER S WITH CEDILLA
0x015F
:
0x6A
,
# LATIN SMALL LETTER S WITH CEDILLA
}
Lib/encodings/cp1140.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x00FF
:
0xDF
,
# LATIN SMALL LETTER Y WITH DIAERESIS
0x20AC
:
0x9F
,
# EURO SIGN
}
Lib/encodings/cp1250.py
View file @
f99b8162
...
...
@@ -558,4 +558,3 @@ encoding_map = {
0x20AC
:
0x80
,
# EURO SIGN
0x2122
:
0x99
,
# TRADE MARK SIGN
}
Lib/encodings/cp1251.py
View file @
f99b8162
...
...
@@ -562,4 +562,3 @@ encoding_map = {
0x2116
:
0xB9
,
# NUMERO SIGN
0x2122
:
0x99
,
# TRADE MARK SIGN
}
Lib/encodings/cp1252.py
View file @
f99b8162
...
...
@@ -558,4 +558,3 @@ encoding_map = {
0x20AC
:
0x80
,
# EURO SIGN
0x2122
:
0x99
,
# TRADE MARK SIGN
}
Lib/encodings/cp1253.py
View file @
f99b8162
...
...
@@ -546,4 +546,3 @@ encoding_map = {
0x20AC
:
0x80
,
# EURO SIGN
0x2122
:
0x99
,
# TRADE MARK SIGN
}
Lib/encodings/cp1254.py
View file @
f99b8162
...
...
@@ -556,4 +556,3 @@ encoding_map = {
0x20AC
:
0x80
,
# EURO SIGN
0x2122
:
0x99
,
# TRADE MARK SIGN
}
Lib/encodings/cp1255.py
View file @
f99b8162
...
...
@@ -540,4 +540,3 @@ encoding_map = {
0x20AC
:
0x80
,
# EURO SIGN
0x2122
:
0x99
,
# TRADE MARK SIGN
}
Lib/encodings/cp1256.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x20AC
:
0x80
,
# EURO SIGN
0x2122
:
0x99
,
# TRADE MARK SIGN
}
Lib/encodings/cp1257.py
View file @
f99b8162
...
...
@@ -551,4 +551,3 @@ encoding_map = {
0x20AC
:
0x80
,
# EURO SIGN
0x2122
:
0x99
,
# TRADE MARK SIGN
}
Lib/encodings/cp1258.py
View file @
f99b8162
...
...
@@ -554,4 +554,3 @@ encoding_map = {
0x20AC
:
0x80
,
# EURO SIGN
0x2122
:
0x99
,
# TRADE MARK SIGN
}
Lib/encodings/cp424.py
View file @
f99b8162
...
...
@@ -525,4 +525,3 @@ encoding_map = {
0x05EA
:
0x71
,
# HEBREW LETTER TAV
0x2017
:
0x78
,
# DOUBLE LOW LINE
}
Lib/encodings/cp500.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x00FE
:
0x8E
,
# LATIN SMALL LETTER THORN (ICELANDIC)
0x00FF
:
0xDF
,
# LATIN SMALL LETTER Y WITH DIAERESIS
}
Lib/encodings/cp856.py
View file @
f99b8162
...
...
@@ -522,4 +522,3 @@ encoding_map = {
0x2593
:
0xB2
,
# DARK SHADE
0x25A0
:
0xFE
,
# BLACK SQUARE
}
Lib/encodings/cp874.py
View file @
f99b8162
...
...
@@ -532,4 +532,3 @@ encoding_map = {
0x2026
:
0x85
,
# HORIZONTAL ELLIPSIS
0x20AC
:
0x80
,
# EURO SIGN
}
Lib/encodings/cp875.py
View file @
f99b8162
...
...
@@ -557,4 +557,3 @@ encoding_map = {
0x2018
:
0xCE
,
# LEFT SINGLE QUOTATION MARK
0x2019
:
0xDE
,
# RIGHT SINGLE QUOTATION MARK
}
Lib/encodings/iso8859_1.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x00FE
:
0xFE
,
# LATIN SMALL LETTER THORN (Icelandic)
0x00FF
:
0xFF
,
# LATIN SMALL LETTER Y WITH DIAERESIS
}
Lib/encodings/iso8859_10.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x017E
:
0xBC
,
# LATIN SMALL LETTER Z WITH CARON
0x2015
:
0xBD
,
# HORIZONTAL BAR
}
Lib/encodings/iso8859_11.py
View file @
f99b8162
...
...
@@ -555,4 +555,3 @@ encoding_map = {
0x0E5A
:
0xFA
,
# THAI CHARACTER ANGKHANKHU
0x0E5B
:
0xFB
,
# THAI CHARACTER KHOMUT
}
Lib/encodings/iso8859_13.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x201D
:
0xA1
,
# RIGHT DOUBLE QUOTATION MARK
0x201E
:
0xA5
,
# DOUBLE LOW-9 QUOTATION MARK
}
Lib/encodings/iso8859_14.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x1EF2
:
0xAC
,
# LATIN CAPITAL LETTER Y WITH GRAVE
0x1EF3
:
0xBC
,
# LATIN SMALL LETTER Y WITH GRAVE
}
Lib/encodings/iso8859_15.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x017E
:
0xB8
,
# LATIN SMALL LETTER Z WITH CARON
0x20AC
:
0xA4
,
# EURO SIGN
}
Lib/encodings/iso8859_16.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x201E
:
0xA5
,
# DOUBLE LOW-9 QUOTATION MARK
0x20AC
:
0xA4
,
# EURO SIGN
}
Lib/encodings/iso8859_2.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x02DB
:
0xB2
,
# OGONEK
0x02DD
:
0xBD
,
# DOUBLE ACUTE ACCENT
}
Lib/encodings/iso8859_3.py
View file @
f99b8162
...
...
@@ -556,4 +556,3 @@ encoding_map = {
0x02D8
:
0xA2
,
# BREVE
0x02D9
:
0xFF
,
# DOT ABOVE
}
Lib/encodings/iso8859_4.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x02D9
:
0xFF
,
# DOT ABOVE
0x02DB
:
0xB2
,
# OGONEK
}
Lib/encodings/iso8859_5.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x045F
:
0xFF
,
# CYRILLIC SMALL LETTER DZHE
0x2116
:
0xF0
,
# NUMERO SIGN
}
Lib/encodings/iso8859_6.py
View file @
f99b8162
...
...
@@ -518,4 +518,3 @@ encoding_map = {
0x0651
:
0xF1
,
# ARABIC SHADDA
0x0652
:
0xF2
,
# ARABIC SUKUN
}
Lib/encodings/iso8859_7.py
View file @
f99b8162
...
...
@@ -560,4 +560,3 @@ encoding_map = {
0x20AC
:
0xA4
,
# EURO SIGN
0x20AF
:
0xA5
,
# DRACHMA SIGN
}
Lib/encodings/iso8859_8.py
View file @
f99b8162
...
...
@@ -527,4 +527,3 @@ encoding_map = {
0x200F
:
0xFE
,
# RIGHT-TO-LEFT MARK
0x2017
:
0xDF
,
# DOUBLE LOW LINE
}
Lib/encodings/iso8859_9.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x015E
:
0xDE
,
# LATIN CAPITAL LETTER S WITH CEDILLA
0x015F
:
0xFE
,
# LATIN SMALL LETTER S WITH CEDILLA
}
Lib/encodings/koi8_r.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x2593
:
0x92
,
# DARK SHADE
0x25A0
:
0x94
,
# BLACK SQUARE
}
Lib/encodings/koi8_u.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x2593
:
0x92
,
# DARK SHADE
0x25A0
:
0x94
,
# BLACK SQUARE
}
Lib/encodings/latin_1.py
View file @
f99b8162
...
...
@@ -48,4 +48,3 @@ def getregentry():
streamreader
=
StreamReader
,
streamwriter
=
StreamWriter
,
)
Lib/encodings/mac_centeuro.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x2265
:
0xB3
,
# GREATER-THAN OR EQUAL TO
0x25CA
:
0xD7
,
# LOZENGE
}
Lib/encodings/mac_croatian.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x25CA
:
0xD7
,
# LOZENGE
0xF8FF
:
0xD8
,
# Apple logo
}
Lib/encodings/mac_cyrillic.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x2264
:
0xB2
,
# LESS-THAN OR EQUAL TO
0x2265
:
0xB3
,
# GREATER-THAN OR EQUAL TO
}
Lib/encodings/mac_farsi.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x2026
:
0x93
,
# HORIZONTAL ELLIPSIS, right-left
0x274A
:
0xC0
,
# EIGHT TEARDROP-SPOKED PROPELLER ASTERISK, right-left
}
Lib/encodings/mac_greek.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x2264
:
0xB2
,
# LESS-THAN OR EQUAL TO
0x2265
:
0xB3
,
# GREATER-THAN OR EQUAL TO
}
Lib/encodings/mac_iceland.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x25CA
:
0xD7
,
# LOZENGE
0xF8FF
:
0xF0
,
# Apple logo
}
Lib/encodings/mac_roman.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0xFB01
:
0xDE
,
# LATIN SMALL LIGATURE FI
0xFB02
:
0xDF
,
# LATIN SMALL LIGATURE FL
}
Lib/encodings/mac_romanian.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0x25CA
:
0xD7
,
# LOZENGE
0xF8FF
:
0xF0
,
# Apple logo
}
Lib/encodings/mac_turkish.py
View file @
f99b8162
...
...
@@ -563,4 +563,3 @@ encoding_map = {
0xF8A0
:
0xF5
,
# undefined1
0xF8FF
:
0xF0
,
# Apple logo
}
Lib/encodings/tis_620.py
View file @
f99b8162
...
...
@@ -554,4 +554,3 @@ encoding_map = {
0x0E5A
:
0xFA
,
# THAI CHARACTER ANGKHANKHU
0x0E5B
:
0xFB
,
# THAI CHARACTER KHOMUT
}
Lib/encodings/utf_7.py
View file @
f99b8162
...
...
@@ -38,4 +38,4 @@ def getregentry():
incrementaldecoder
=
IncrementalDecoder
,
streamreader
=
StreamReader
,
streamwriter
=
StreamWriter
,
)
\ No newline at end of file
)
Lib/runpy.py
View file @
f99b8162
...
...
@@ -239,7 +239,7 @@ except AttributeError:
importer
=
_FileSystemImporter
(
path_item
)
except
ImportError
:
pass
return
importer
return
importer
def
_get_path_loader
(
mod_name
,
path
=
None
):
...
...
@@ -283,7 +283,7 @@ except AttributeError:
If the module or package is accessible via the normal import
mechanism, a wrapper around the relevant part of that machinery
is returned.
Non PEP 302 mechanisms (e.g. the Windows registry) used by the
standard import machinery to find files in alternative locations
are partially supported, but are searched AFTER sys.path. Normally,
...
...
@@ -328,7 +328,7 @@ except AttributeError:
else
:
# Top level module, so stick with default path
sub_name
=
mod_name
for
importer
in
sys
.
meta_path
:
loader
=
importer
.
find_module
(
mod_name
,
path
)
if
loader
is
not
None
:
...
...
@@ -406,7 +406,7 @@ def _run_module_code(code, init_globals=None,
def
run_module
(
mod_name
,
init_globals
=
None
,
run_name
=
None
,
alter_sys
=
False
):
"""Execute a module's code without importing it
Returns the resulting top level namespace dictionary
"""
loader
=
_get_loader
(
mod_name
)
...
...
@@ -418,7 +418,7 @@ def run_module(mod_name, init_globals=None,
filename
=
_get_filename
(
loader
,
mod_name
)
if
run_name
is
None
:
run_name
=
mod_name
return
_run_module_code
(
code
,
init_globals
,
run_name
,
return
_run_module_code
(
code
,
init_globals
,
run_name
,
filename
,
loader
,
alter_sys
)
...
...
Lib/test/test_runpy.py
View file @
f99b8162
...
...
@@ -165,8 +165,8 @@ class RunModuleTest(unittest.TestCase):
def
test_main
():
run_unittest
(
RunModuleCodeTest
)
run_unittest
(
RunModuleTest
)
run_unittest
(
RunModuleCodeTest
)
run_unittest
(
RunModuleTest
)
if
__name__
==
"__main__"
:
test_main
()
\ No newline at end of file
test_main
()
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