@@ -2358,8 +2358,8 @@ def seek(self, offset, whence=0):
2358
2358
"""Seek in data.
2359
2359
2360
2360
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,
2363
2363
backwards by re-opening and decompressing from the start.
2364
2364
"""
2365
2365
@@ -3131,7 +3131,7 @@ def rar3_decompress(vers, meth, data, declen=0, flags=0, crc=0, pwd=None, salt=N
3131
3131
3132
3132
3133
3133
def sanitize_filename (fname , pathsep , is_win32 ):
3134
- """Simulate unrar sanitization .
3134
+ """Make filename safe for write access .
3135
3135
"""
3136
3136
if is_win32 :
3137
3137
if len (fname ) > 1 and fname [1 ] == ":" :
@@ -3203,12 +3203,12 @@ def parse_dos_time(stamp):
3203
3203
class nsdatetime (datetime ):
3204
3204
"""Datetime that carries nanoseconds.
3205
3205
3206
- Arithmetic not supported, will lose nanoseconds.
3206
+ Arithmetic operations will lose nanoseconds.
3207
3207
3208
3208
.. versionadded:: 4.0
3209
3209
"""
3210
3210
__slots__ = ("nanosecond" ,)
3211
- nanosecond : int #: Number of nanoseconds, 0 <= nanosecond < 999999999
3211
+ nanosecond : int #: Number of nanoseconds, 0 <= nanosecond <= 999999999
3212
3212
3213
3213
def __new__ (cls , year , month = None , day = None , hour = 0 , minute = 0 , second = 0 ,
3214
3214
microsecond = 0 , tzinfo = None , * , fold = 0 , nanosecond = 0 ):
0 commit comments