1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-24 15:12:31 +01:00

a proper signature, else we get the error Alex reported

This commit is contained in:
Guido Serra
2019-09-09 11:47:36 +02:00
parent 8c2696b78c
commit fbc67695a5

View File

@@ -29,7 +29,7 @@ class SizeError(IOError):
""" Custom error class. """
pass
class LogFile(file):
class LogFile(name, mode="r", maxsize=-1):
"""LogFile(name, [mode="w"], [maxsize=360000])
Opens a new file object. After writing <maxsize> bytes a SizeError