Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/click/__pycache__/globals.cpython-37.pyc

28 lines
1.8 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>/<2F>]<5D><00>@s:ddlmZe<01>Zd dd<04>Zdd<06>Zdd<08>Zd d
d <0B>Zd S)<0E>)<01>localFc Cs8yttd<01>dSttfk
r2|s.td<03><01>YnXdS)a<>Returns the current click context. This can be used as a way to
access the current context object from anywhere. This is a more implicit
alternative to the :func:`pass_context` decorator. This function is
primarily useful for helpers such as :func:`echo` which might be
interested in changing its behavior based on the current context.
To push the current context, :meth:`Context.scope` can be used.
.. versionadded:: 5.0
:param silent: is set to `True` the return value is `None` if no context
is available. The default behavior is to raise a
:exc:`RuntimeError`.
<20>stack<63><6B><EFBFBD><EFBFBD><EFBFBD>z!There is no active click context.N)<05>getattr<74>_local<61>AttributeError<6F>
IndexError<EFBFBD> RuntimeError)<01>silent<6E>r <00>0/tmp/pip-install-c3kgu56x/click/click/globals.py<70>get_current_contexts
r cCstj<01>dg<00><02>|<00>dS)z*Pushes a new context to the current stack.rN)r<00>__dict__<5F>
setdefault<EFBFBD>append)<01>ctxr r r <00> push_contextsrcCstj<01><02>dS)z%Removes the top level from the stack.N)rr<00>popr r r r <00> pop_context"srNcCs(|dk r |Stdd<03>}|dk r$|jSdS)z<>"Internal helper to get the default value of the color flag. If a
value is passed it's returned unchanged, otherwise it's looked up from
the current context.
NT)r
)r <00>color)rrr r r <00>resolve_color_default's

r)F)N)<07> threadingrrr rrrr r r r <00><module>s