File tree 2 files changed +14
-11
lines changed 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
import io
2
- import sys
3
2
import posixpath
4
3
import zipfile
5
4
import itertools
6
5
import contextlib
7
6
import pathlib
8
7
8
+ from .py310compat import text_encoding
9
9
10
- __all__ = ['Path' ]
11
-
12
-
13
- te_impl = 'lambda encoding, stacklevel=2, /: encoding'
14
- te_impl_37 = te_impl .replace (', /' , '' )
15
- _text_encoding = eval (te_impl if sys .version_info > (3 , 8 ) else te_impl_37 )
16
10
17
-
18
- text_encoding = (
19
- io .text_encoding if sys .version_info > (3 , 10 ) else _text_encoding # type: ignore
20
- )
11
+ __all__ = ['Path' ]
21
12
22
13
23
14
def _parents (path ):
Original file line number Diff line number Diff line change
1
+ import sys
2
+ import io
3
+
4
+
5
+ te_impl = 'lambda encoding, stacklevel=2, /: encoding'
6
+ te_impl_37 = te_impl .replace (', /' , '' )
7
+ _text_encoding = eval (te_impl ) if sys .version_info > (3 , 8 ) else eval (te_impl_37 )
8
+
9
+
10
+ text_encoding = (
11
+ io .text_encoding if sys .version_info > (3 , 10 ) else _text_encoding # type: ignore
12
+ )
You can’t perform that action at this time.
0 commit comments