reykit 1.1.63__py3-none-any.whl → 1.1.64__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
reykit/ros.py
CHANGED
@@ -352,38 +352,27 @@ class File(Base):
|
|
352
352
|
|
353
353
|
|
354
354
|
@overload
|
355
|
-
def open(self, mode: OpenBinaryMode = 'wb+') -> BinaryIO: ...
|
355
|
+
def open(self, mode: OpenBinaryMode = 'wb+', encode: str = 'utf-8') -> BinaryIO: ...
|
356
356
|
|
357
357
|
@overload
|
358
|
-
def open(self, mode: OpenTextMode) -> TextIO: ...
|
358
|
+
def open(self, mode: OpenTextMode, encode: str = 'utf-8') -> TextIO: ...
|
359
359
|
|
360
|
-
def open(self, mode: OpenTextMode | OpenBinaryMode = 'wb+') -> TextIO | BinaryIO:
|
360
|
+
def open(self, mode: OpenTextMode | OpenBinaryMode = 'wb+', encode: str = 'utf-8') -> TextIO | BinaryIO:
|
361
361
|
"""
|
362
362
|
Open file.
|
363
363
|
|
364
364
|
Parameters
|
365
365
|
----------
|
366
366
|
mode : Open mode.
|
367
|
+
encode : Encoding method.
|
367
368
|
|
368
369
|
Returns
|
369
370
|
-------
|
370
371
|
IO object.
|
371
372
|
"""
|
372
373
|
|
373
|
-
# Handle parameter.
|
374
|
-
if (
|
375
|
-
(
|
376
|
-
'r' in mode
|
377
|
-
or '+' in mode
|
378
|
-
)
|
379
|
-
and 'b' not in mode
|
380
|
-
):
|
381
|
-
encoding = 'utf-8'
|
382
|
-
else:
|
383
|
-
encoding = None
|
384
|
-
|
385
374
|
# Open.
|
386
|
-
io = open(self.path, mode, encoding=
|
375
|
+
io = open(self.path, mode, encoding=encode)
|
387
376
|
|
388
377
|
return io
|
389
378
|
|
@@ -8,7 +8,7 @@ reykit/rlog.py,sha256=TRAWaVG9KTgzeNjN-FXkcvBmvq1IhICgawllQEGoUdg,25745
|
|
8
8
|
reykit/rmonkey.py,sha256=Dj2GBzBDFXbo0Z-5f8Zep4dfbaIw1bo1FUmC31xvDuk,7929
|
9
9
|
reykit/rnet.py,sha256=6uULgoPk8DTKWg9yNQco7gdw4A59F9ygcZR6rgO4eoY,16897
|
10
10
|
reykit/rnum.py,sha256=PhG4V_BkVfCJUsbpMDN1umGZly1Hsus80TW8bpyBtyY,3653
|
11
|
-
reykit/ros.py,sha256=
|
11
|
+
reykit/ros.py,sha256=1i878eWvR7L1riTIX_oljg_31V53QOz9sR9b4XEUQ1s,46851
|
12
12
|
reykit/rrand.py,sha256=4VwooITgox54_GonELcJfcIpStDi-UJchpnyWKnyeIA,8606
|
13
13
|
reykit/rre.py,sha256=1qva7xatKVE9qC2j7IujjXSM59qxHWwTYpiizFFQ8Xo,6024
|
14
14
|
reykit/rschedule.py,sha256=QakEAtOcMg8uL2iOLre9uSsH-DsW6uAvzdXFiPJw_1o,5767
|
@@ -22,7 +22,7 @@ reykit/rwrap.py,sha256=FEmeK_fboJ-OyXeJf8bilc7U2ph8xIbZGNHb6fLCy2c,15063
|
|
22
22
|
reykit/rzip.py,sha256=BGEONswuBZxQ-zcgd_xp2fcvYesC9AmKaaXWvnT3bTI,3456
|
23
23
|
reykit/rdll/__init__.py,sha256=nLSb8onBm2ilyoxzpDzUeGfSCKwkLEesIhzK3LiJ8mk,701
|
24
24
|
reykit/rdll/rdll_core.py,sha256=o6-rKcTQgxZQe0kD3GnwyNb3KL9IogzgCQNOmYLMm7A,5086
|
25
|
-
reykit-1.1.
|
26
|
-
reykit-1.1.
|
27
|
-
reykit-1.1.
|
28
|
-
reykit-1.1.
|
25
|
+
reykit-1.1.64.dist-info/METADATA,sha256=_HPzKz8oeq_2sWw95sp3mtKVDjULCRUbIkjoL8JcyU4,1872
|
26
|
+
reykit-1.1.64.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
27
|
+
reykit-1.1.64.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
28
|
+
reykit-1.1.64.dist-info/RECORD,,
|
File without changes
|
File without changes
|