mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
Fix pep8 whitespace errors
This commit is contained in:
parent
1e943a22df
commit
01b9fb1549
12 changed files with 50 additions and 50 deletions
|
@ -7,14 +7,14 @@ python-tail can be used to monitor changes to a file.
|
|||
Example
|
||||
-------
|
||||
>>> import tail
|
||||
>>>
|
||||
>>>
|
||||
>>> # Create a tail instance
|
||||
>>> t = tail.Tail('file-to-be-followed')
|
||||
>>>
|
||||
>>>
|
||||
>>> # Register a callback function to be called when a new line is found in the followed file.
|
||||
>>> # If no callback function is registerd, new lines would be printed to standard out.
|
||||
>>> t.register_callback(callback_function)
|
||||
>>>
|
||||
>>>
|
||||
>>> # Follow the file with 5 seconds as sleep time between iterations.
|
||||
>>> # If sleep time is not provided 1 second is used as the default time.
|
||||
>>> t.follow(s=5)
|
||||
|
@ -67,7 +67,7 @@ class Tail(object):
|
|||
|
||||
def follow(self, s=1):
|
||||
"""Do a tail follow.
|
||||
|
||||
|
||||
If a callback function is registered it is called with every new line.
|
||||
Else printed to standard out.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue