##// END OF EJS Templates
1.2.0-rc1
1.2.0-rc1

File last commit:

r13962:cea51739
r15065:5c756711
Show More
_dummy.py
29 lines | 578 B | text/x-python | PythonLexer
MinRK
Backport PR #4453: Play nice with App Nap...
r13962 #-----------------------------------------------------------------------------
# Copyright (C) 2013 Min RK
#
# Distributed under the terms of the 2-clause BSD License.
#-----------------------------------------------------------------------------
from contextlib import contextmanager
def beginActivityWithOptions(options, reason=""):
return
def endActivity(activity):
return
def nope():
return
def nap():
return
@contextmanager
def nope_scope(
options=0,
reason="Because Reasons"
):
yield
def napping_allowed():
return True