Format everything with black
Follow the readme's instruction haha
This commit is contained in:
4
utils.py
4
utils.py
@ -1,9 +1,11 @@
|
||||
# import sublime
|
||||
import time
|
||||
|
||||
|
||||
def get_settings():
|
||||
return sublime.get_settings("MarkdownLivePreview.sublime-settings")
|
||||
|
||||
|
||||
def min_time_between_call(timeout, on_block=lambda *args, **kwargs: None):
|
||||
""" Enforces a timeout between each call to the function
|
||||
timeout is in seconds
|
||||
@ -19,5 +21,7 @@ def min_time_between_call(timeout, on_block=lambda *args, **kwargs: None):
|
||||
|
||||
last_call = time.time()
|
||||
return func(*args, **kwargs)
|
||||
|
||||
return wrapper
|
||||
|
||||
return outer
|
||||
|
||||
Reference in New Issue
Block a user