Skip to content

Commit 69db0e1

Browse files
committed
Some docstring fixes.
1 parent b6f7a4d commit 69db0e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rarfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,8 +2358,8 @@ def seek(self, offset, whence=0):
23582358
"""Seek in data.
23592359
23602360
On uncompressed files, the seeking works by actual
2361-
seeks so it's fast. On compresses files its slow
2362-
- forward seeking happends by reading ahead,
2361+
seeks so it's fast. On compressed files its slow
2362+
- forward seeking happens by reading ahead,
23632363
backwards by re-opening and decompressing from the start.
23642364
"""
23652365

@@ -3131,7 +3131,7 @@ def rar3_decompress(vers, meth, data, declen=0, flags=0, crc=0, pwd=None, salt=N
31313131

31323132

31333133
def sanitize_filename(fname, pathsep, is_win32):
3134-
"""Simulate unrar sanitization.
3134+
"""Make filename safe for write access.
31353135
"""
31363136
if is_win32:
31373137
if len(fname) > 1 and fname[1] == ":":
@@ -3203,12 +3203,12 @@ def parse_dos_time(stamp):
32033203
class nsdatetime(datetime):
32043204
"""Datetime that carries nanoseconds.
32053205
3206-
Arithmetic not supported, will lose nanoseconds.
3206+
Arithmetic operations will lose nanoseconds.
32073207
32083208
.. versionadded:: 4.0
32093209
"""
32103210
__slots__ = ("nanosecond",)
3211-
nanosecond: int #: Number of nanoseconds, 0 <= nanosecond < 999999999
3211+
nanosecond: int #: Number of nanoseconds, 0 <= nanosecond <= 999999999
32123212

32133213
def __new__(cls, year, month=None, day=None, hour=0, minute=0, second=0,
32143214
microsecond=0, tzinfo=None, *, fold=0, nanosecond=0):

0 commit comments

Comments
 (0)