Skip to content

Commit

Permalink
Fix imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Nov 6, 2024
1 parent b3ee8c1 commit 1a98b24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/encodings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def search_function(encoding):
codecs.register(search_function)

if sys.platform == 'win32':
from _win_cp_codecs import create_win32_code_page_codec
from ._win_cp_codecs import create_win32_code_page_codec

def win32_code_page_search_function(encoding):
encoding = encoding.lower()
Expand Down
2 changes: 1 addition & 1 deletion Lib/encodings/_win_cp_codecs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import codecs

def create_win32_code_page_codec(cp):
from codecs import code_page_decode, code_page_decode
from codecs import code_page_encode, code_page_decode

def encode(input, errors='strict'):
return code_page_encode(cp, input, errors)
Expand Down

0 comments on commit 1a98b24

Please sign in to comment.