Files
intellecton/venv/lib/python3.12/site-packages/properdocs/__pycache__/plugins.cpython-312.pyc
T

388 lines
32 KiB
Plaintext
Raw Normal View History

Ë
jídãó~dZddlmZddlZddlZddlmZddlmZm Z m
Z
m Z m Z m
Z
mZejdk\r ddlmZmZnddlmZmZerddlZddlmZdd lmZmZmZmZmZer$dd
lmZdd l m!Z!dd l"m#Z#dd
l$m%Z%ddl&m'Z'ddl(m)Z)er ddl*m+Z+m,Z,ne
Z,e,d«Z-e
d«Z.ej^d«Z0d#dZ1e
de¬«Z2Gdde e2«Z3e4de3jjD««Z6e6D]Z7e8e3de7z«Œd$dZ9Gdde e-e.f«Z:Gdde;ee<e3f«Z=Gd „d!ej|«Z?d%d"„Z@y)&z)Implements the plugin API for ProperDocs.é)Ú annotationsN)ÚMutableMapping)Ú
TYPE_CHECKINGÚAnyÚCallableÚGenericÚLiteralÚTypeVarÚoverload)éé
)Ú
EntryPointÚ entry_points)Úutils)ÚConfigÚ ConfigErrorsÚConfigWarningsÚ LegacyConfigÚPlainConfigSchema)ÚProperDocsConfig)ÚLiveReloadServer)ÚFiles)Ú
Navigation)ÚPage)ÚTemplateContext)Ú ConcatenateÚ ParamSpecÚTzproperdocs.pluginscóiidœ}|D]u}t|d¬«D]a}t|dd«jd«rŒ |j||vr|jj|d«rŒP||||j<ŒcŒw|d|d zS)
z=Return a dict of all installed Plugins as {name: EntryPoint}.)Ú
properdocsÚmkdocsz.plugins)ÚgroupÚvalueÚzmkdocs.z .contrib.r"r!)rÚgetattrÚ
startswithÚnamer$)Ú
pluginmapsÚprefixÚplugins úU/home/antigravity/intellecton/venv/lib/python3.12/site-packages/properdocs/plugins.pyÚ get_pluginsr-/àBDÐPRÑ3S€Jàò5ˆÜ"¨F¨8°8Ð)<Ô 5ˆv˜Ó6°yÔà{‰{˜j¨Ñ0°V·\±\×5LÑ5LÐPVÈxÐW`ÐMaÔ5bØØ.4ˆJ ˜vŸ{™{Ò
   *¨\Ñ":Ñ Ú
SomeConfig)Úboundcó¤eZdZUdZeZded<dZded<iZded<d Z d
ed < d#d Z
d
Z d$ d%dZ d&dZ
d'dZ d(dZd)dZd*dZd+dZ d,dZ d-dZd*dZd.dZ d/dZ d0dZ d1dZd2dZd3dZ d4dZ d5d „Z d6d!„Zd7d"„Zy)8Ú
BasePluginzI
Plugin base class.
All plugins should subclass this class.
ztype[SomeConfig]Ú config_class©rÚ
config_schemer/ÚconfigFÚboolÚsupports_multiple_instancescój|jd|jd}t||ft|¬««S)z_Eliminates the need to write `config_class = FooConfig` when subclassing BasePlugin[FooConfig].ú])r3)Ú__name__ÚtypeÚdict)Úclsr3r(s r,Ú__class_getitem__zBasePlugin.__class_getitem__Ps5à—,,˜×!6Ñ!6Ð 7°qÐ9ˆÜD˜3˜&¤$°LÔ"AÓBr.cóÆt|jt«std|jd«|jtur|jj
|_yy)Nz
config_class z6 must be a subclass of `properdocs.config.base.Config`)Ú
issubclassr3rÚ TypeErrorrÚ_schemar5)r?s r,Ú__init_subclass__zBasePlugin.__init_subclass__Us\ܘ#×*¬FÔØ × 0Ñ 0Ð1Ð1gÐð
ð × Ñ ¤<Ñ /Ø #× 0Ñ 0× 8Ñ 8ˆ ð 0r.Ncóø|jturt|j|¬«|_n|j|¬«|_|jj |«|jj «S)zJLoad config from a dict of options. Returns a tuple of (errors, warnings).)Úconfig_file_path)r3rr5r6Ú load_dictÚvalidate)ÚselfÚoptionsrGs r,Ú load_configzBasePlugin.load_config]sbð × Ñ ¤ Ñ & t×'9Ñ'9ÐL\Ô]ˆD×+Ð=MÐNˆDŒKà ×јgÔ{‰{×%r.cóy)
The `startup` event runs once at the very beginning of an `properdocs` invocation.
New in MkDocs 1.4.
The presence of an `on_startup` method (even if empty) migrates the plugin to the new
system where the plugin object is kept across builds within one `properdocs serve`.
Note that for initializing variables, the `__init__` method is still preferred.
For initializing per-build variables (and whenever in doubt), use the `on_config` event.
Args:
command: the command that ProperDocs was invoked with, e.g. "serve" for `properdocs serve`.
dirty: whether `--dirty` flag was passed.
Nr4©rJÚcommandÚdirtys r,Ú
on_startupzBasePlugin.on_startuplór.cóy)
The `shutdown` event runs once at the very end of an `properdocs` invocation, before exiting.
This event is relevant only for support of `properdocs serve`, otherwise within a
single build it's undistinguishable from `on_post_build`.
New in MkDocs 1.4.
The presence of an `on_shutdown` method (even if empty) migrates the plugin to the new
system where the plugin object is kept across builds within one `properdocs serve`.
Note the `on_post_build` method is still preferred for cleanups, when possible, as it has
a much higher chance of actually triggering. `on_shutdown` is "best effort" because it
relies on detecting a graceful shutdown of ProperDocs.
Nr4©rJs r,Ú on_shutdownzBasePlugin.on_shutdown}rRr.có|S)av
The `serve` event is only called when the `serve` command is used during
development. It runs only once, after the first build finishes.
It is passed the `Server` instance which can be modified before
it is activated. For example, additional files or directories could be added
to the list of "watched" files for auto-reloading.
Args:
server: `livereload.Server` instance
config: global configuration object
builder: a callable which gets passed to each call to `server.watch`
Returns:
`livereload.Server` instance
r4©rJÚserverr6Úbuilders r,Úon_servezBasePlugin.on_serveŽs ð$ˆ
r.có|S)aP
The `config` event is the first event called on build and is run immediately
after the user configuration is loaded and validated. Any alterations to the
config should be made here.
Args:
config: global configuration object
Returns:
global configuration object
r4©rJr6s r,Ú on_configzBasePlugin.on_config¤s ðˆ
r.cóy)
The `pre_build` event does not alter any variables. Use this event to call
pre-build scripts.
Args:
config: global configuration object
Nr4r\s r,Ú on_pre_buildzBasePlugin.on_pre_build²rRr.có|S)a
The `files` event is called after the files collection is populated from the
`docs_dir`. Use this event to add, remove, or alter files in the
collection. Note that Page objects have not yet been associated with the
file objects in the collection. Use [Page Events](plugins.md#page-events) to manipulate page
specific data.
Args:
files: global files collection
config: global configuration object
Returns:
global files collection
r4©rJÚfilesr6s r,Úon_fileszBasePlugin.on_files»s ðˆ r.có|S)aQ
The `nav` event is called after the site navigation is created and can
be used to alter the site navigation.
Args:
nav: global navigation object
config: global configuration object
files: global files collection
Returns:
global navigation object
r4©rJÚnavr6rbs r,Úon_navzBasePlugin.on_navÌs ðˆ
r.có|S)a­
The `env` event is called after the Jinja template environment is created
and can be used to alter the
[Jinja environment](https://jinja.palletsprojects.com/en/latest/api/#jinja2.Environment).
Args:
env: global Jinja environment
config: global configuration object
files: global files collection
Returns:
global Jinja Environment
r4©rJÚenvr6rbs r,Úon_envzBasePlugin.on_envÝs ð ˆ
r.cóy)z¸
The `post_build` event does not alter any variables. Use this event to call
post-build scripts.
Args:
config: global configuration object
Nr4r\s r,Ú
on_post_buildzBasePlugin.on_post_buildïrRr.cóy)
The `build_error` event is called after an exception of any kind
is caught by ProperDocs during the build process.
Use this event to clean things up before ProperDocs terminates. Note that any other
events which were scheduled to run after the error will have been skipped. See
[Handling Errors](plugins.md#handling-errors) for more details.
Args:
error: exception raised
Nr4©rJÚerrors r,Úon_build_errorzBasePlugin.on_build_errorørRr.có|S)
The `pre_template` event is called immediately after the subject template is
loaded and can be used to alter the template.
Args:
template: a Jinja2 [Template](https://jinja.palletsprojects.com/en/latest/api/#jinja2.Template) object
template_name: string filename of template
config: global configuration object
Returns:
a Jinja2 [Template](https://jinja.palletsprojects.com/en/latest/api/#jinja2.Template) object
r4©rJÚtemplateÚ
template_namer6s r,Úon_pre_templatezBasePlugin.on_pre_templates ðˆr.có|S)a¿
The `template_context` event is called immediately after the context is created
for the subject template and can be used to alter the context for that specific
template only.
Args:
context: dict of template context variables
template_name: string filename of template
config: global configuration object
Returns:
dict of template context variables
r4©rJÚcontextrur6s r,Úon_template_contextzBasePlugin.on_template_contextó ð ˆr.có|S)a
The `post_template` event is called after the template is rendered, but before
it is written to disc and can be used to alter the output of the template.
If an empty string is returned, the template is skipped and nothing is is
written to disc.
Args:
output_content: output of rendered template as string
template_name: string filename of template
config: global configuration object
Returns:
output of rendered template as string
r4©rJÚoutput_contentrur6s r,Úon_post_templatezBasePlugin.on_post_template)s
ð"Ðr.có|S)a‡
The `pre_page` event is called before any actions are taken on the subject
page and can be used to alter the `Page` instance.
Args:
page: `properdocs.structure.pages.Page` instance
config: global configuration object
files: global files collection
Returns:
`properdocs.structure.pages.Page` instance
r4©rJÚpager6rbs r,Ú on_pre_pagezBasePlugin.on_pre_page>s ðˆ r.cóy)
> DEPRECATED: Instead of this event, prefer one of these alternatives:
>
> * Since ProperDocs 1.6, instead set `content_bytes`/`content_string` of a `File` inside [`on_files`][].
> * Usually (although it's not an exact alternative), `on_page_markdown` can serve the same purpose.
The `on_page_read_source` event can replace the default mechanism to read
the contents of a page's source from the filesystem.
Args:
page: `properdocs.structure.pages.Page` instance
config: global configuration object
Returns:
The raw source for a page as unicode string. If `None` is returned, the
default loading from a file will be performed.
Nr4©rJrr6s r,Úon_page_read_sourcezBasePlugin.on_page_read_sourceMsð$r.có|S)a#
The `page_markdown` event is called after the page's markdown is loaded
from file and can be used to alter the Markdown source text. The meta-
data has been stripped off and is available as `page.meta` at this point.
Args:
markdown: Markdown source text of page as string
page: `properdocs.structure.pages.Page` instance
config: global configuration object
files: global files collection
Returns:
Markdown source text of page as string
r4©rJÚmarkdownrr6rbs r,Úon_page_markdownzBasePlugin.on_page_markdownas ð"ˆr.có|S)
The `page_content` event is called after the Markdown text is rendered to
HTML (but before being passed to a template) and can be used to alter the
HTML body of the page.
Args:
html: HTML rendered from Markdown source as string
page: `properdocs.structure.pages.Page` instance
config: global configuration object
files: global files collection
Returns:
HTML rendered from Markdown source as string
r4©rJÚhtmlrr6rbs r,Úon_page_contentzBasePlugin.on_page_contentts ð"ˆ r.có|S)
The `page_context` event is called after the context for a page is created
and can be used to alter the context for that specific page only.
Args:
context: dict of template context variables
page: `properdocs.structure.pages.Page` instance
config: global configuration object
nav: global navigation object
Returns:
dict of template context variables
r4©rJryrr6rfs r,Úon_page_contextzBasePlugin.on_page_context‡r{r.có|S)a 
The `post_page` event is called after the template is rendered, but
before it is written to disc and can be used to alter the output of the
page. If an empty string is returned, the page is skipped and nothing is
written to disc.
Args:
output: output of rendered template as string
page: `properdocs.structure.pages.Page` instance
config: global configuration object
Returns:
output of rendered template as string
r4©rJÚoutputrr6s r,Ú on_post_pagezBasePlugin.on_post_page™s ðˆ
r.)r3z type[Config]©N)rKzdict[str, Any]rGú
str | NoneÚreturnz#tuple[ConfigErrors, ConfigWarnings]©rOz&Literal['build', 'gh-deploy', 'serve']rPr7r˜ÚNone©r˜)rXrr6rrYrr˜zLiveReloadServer | None)r6rr˜zProperDocsConfig | None©r6rr˜)rbrr6rr˜z Files | None)rfrr6rrbrr˜zNavigation | None)rjújinja2.Environmentr6rrbrr˜zjinja2.Environment | None©rpÚ Exceptionr˜)rtújinja2.TemplateruÚstrr6rr˜zjinja2.Template | None)ryrrur6rr˜úTemplateContext | None)r~rur6rr˜r—)rrr6rrbrr˜z Page | None©rrr6rr˜r—)
r‰rrr6rrbrr˜r—)
rrrr6rrbrr˜r—)
ryrrrr6rrfrr˜)r”rrr6rr˜r—) r<Ú
__module__Ú __qualname__Ú__doc__rr3Ú__annotations__r5r6r8r@rErLrQrUrZr]r_rcrgrkrmrqrvrzrr†rr•r4r.r,r2r2Bñð &2€LÐ1Ø')€MЀFˆà(-РÓCò
GKð  &Ø9Cð &à ,ó  ó" ð"ØØ6FðØQYðà óó, ó óð"ØðØ-=ðØFKðà óð"ØØ5EðØNSðà "óó$ ó
 ðØØ>AðØK[ðà óð"ØØ=@ðØJZðà óð$ØØ8;ðØEUðà óó*
óð(ØðØ)-ðØ7GðØPUðà óð&ØðØ%)ðØ3CðØLQðà óð&ØØ48ðØBRðØYcðà óô$r.r2c#óJK|]}|jd«sŒ|ddŒy­w)Úon_r r')Ú.0Úks r,ú <genexpr>r­«s!èø€Ò°Q·\±\À%Õ5HˆqŒuÑIùs#
#cóˆfd}|S)
A decorator to set an event priority for an event handler method.
Recommended priority values:
`100` "first", `50` "early", `0` "default", `-50` "late", `-100` "last".
As different plugins discover more precise relations to each other, the values should be further tweaked.
Usage example:
```python
@plugins.event_priority(-100) # Wishing to run this after all other plugins' `on_files` events.
def on_files(self, files, config, **kwargs):
...
```
New in MkDocs 1.4.
Recommended shim for backwards compatibility:
```python
try:
from properdocs.plugins import event_priority
except ImportError:
event_priority = lambda priority: lambda f: f # No-op fallback
```
có|_|Sr)Úmkdocs_priority)Ú event_methodÚprioritys €r,Ú decoratorz!event_priority.<locals>.decoratorÍsø€Ø'/ˆ ÔÐr.r4)s` r,Úevent_priorityr´²sø€ô6ð Ðr.có(eZdZdZddZddZddZy) Ú
CombinedEventa`
A descriptor that allows defining multiple event handlers and declaring them under one event's name.
Usage example:
```python
@plugins.event_priority(100)
def _on_page_markdown_1(self, markdown: str, **kwargs):
...
@plugins.event_priority(-50)
def _on_page_markdown_2(self, markdown: str, **kwargs):
...
on_page_markdown = plugins.CombinedEvent(_on_page_markdown_1, _on_page_markdown_2)
```
NOTE: The names of the sub-methods **can't** start with `on_`;
instead they can start with `_on_` like in the the above example, or anything else.
có||_yr)Úmethods)rJr¸s r,Ú__init__zCombinedEvent.__init__ês ؈ r.cóDtt|«jd«)Nz object is not callable)rCr=r<)rJÚinstanceÚargsÚkwargss r,Ú__call__zCombinedEvent.__call__îs Üœ4 1Ð1HÐJr.Ncó>tˆˆfd|jD«ŽS)Nc3óBK|]}|j«Œy­wr)Ú__get__)Úfr»Úowners €€r,r­z(CombinedEvent.__get__.<locals>.<genexpr>òsøèø€ÒP¸a˜qŸy™y¨°5×Pùsƒ)r¸)rJs ``r,zCombinedEvent.__get__ñsù€ÜÔPÀ4Ç<Á<ÔQr.)r¸z Callable[Concatenate[Any, P], T])r2zP.argsr½zP.kwargsr˜rr)r<r4r.r,Ôsñó*óKôRr.có¤eZdZUdZded<dˆfd Z d d dZd!ˆfd Zd"ˆfd Ze d#d«Z
e d$d „«Z
dd%d
Z
d&d Z dd Z d'd
Z
d(dZd)dZd*dZd+dZd,dZd)dZd-dZ d.dZ d/dZ d0dZd1dZd2dZ d3dZ d4dZ d5dZd6dZˆxZS)7ÚPluginCollectionzì
A collection of plugins.
In addition to being a dict of Plugin instances, each event method is registered
upon being added. All registered methods for a given event can then be run in order
by calling `run_event`.
r—Ú_current_plugincópt||i|¤ŽtDcic]}|gŒc}|_i|_ycc}wr)Úsuperr¹ÚEVENTSÚeventsÚ_event_origins)rJÚ __class__s €r,zPluginCollection.__init__s9ø€Ü
ј) )ÜAGÖ1H¸A°!°R±%Ò1HˆŒ Ø35ˆÕùò2Is
3cóÊt|t«r&|jD]}|j|||¬«Œy
|j|}|dk(r^t |«dk(rP|j jtt|««d«}|xsd}tjd|d|d«tj||d¬ «|r ||j |<y
y
#t$rYy
wxYw) zRegister a method for an event.©Ú plugin_nameÚpage_read_sourceéú <unknown>zBMultiple 'on_page_read_source' handlers can't work (both plugins 'z' and 'z' registered one).cót|dd« S)Nr°r)r&)Úms r,ú<lambda>z2PluginCollection._register_event.<locals>.<lambda>s¼ÀÐCTÐVWÓ8XÐ7X€r.)ÚkeyN)Ú
isinstancer¶r¸Ú_register_eventrÊÚlenrËÚgetÚnextÚiterÚlogÚwarningrÚinsortrC)rJÚ
event_nameÚmethodrÏÚsubrÊÚplugin1Úplugin2s r,z PluginCollection._register_eventô fœmÔ —~‘~ò
OØ×$ Z°À+Ð
Oð—[‘[ Ñ,ˆFØÐ/´C¸³KÀ1Ò4DØ×1´$´t¸F³|Ó2DÀkÓRØÜ ð&Ø&- Y¨g°g°YÐ>PðRôô
L‰L˜ Ñ-XÕ ðØ2=D×ÒøôÙðúsÃCà C"Ã!C"có"t||«Sr)Ú __getitem__)rJs €r,zPluginCollection.__getitem__sø€Ü‰wÑ" 'r.có´t|||«dt|«D«D]2}t||d«}t |«sŒ|j |dd||¬«Œ4y)Nc3óDK|]}|jd«sŒ|Œy­w)Nrª)Úxs r,r­z/PluginCollection.__setitem__.<locals>.<genexpr>"sèø€ÒH °A·L±LÀÕ4Gœ1ÑHùs  r )Ú __setitem__Údirr&ÚcallablerØ)rJr$s €r,zPluginCollection.__setitem__s]ø€Ü
јC ÔH¤c¨%£jÔ NˆJܘU J°Ó5ˆFÜ˜ÕØ×$ Z°° ^°VÈÐ Nr.c óyrr4)rJr(s r,Ú run_eventzPluginCollection.run_event'sØ58r.c óyrr4)rJr(Úitemr½s r,zPluginCollection.run_event*sØ<?r.c óN|du}|j|D]‡}|jj|d«|_tj «t jkr&tjd|d|jd«|r
||fi|¤Ž}n|di|¤Ž}|Œ†|}Œ‰d|_|S)a[
Run all registered methods of an event.
`item` is the object to be modified or replaced and returned by the event method.
If it isn't given the event method creates a new object to be returned.
All other keywords are variables for context, but would not generally
be modified by the event method.
NrÒz Running `z` event from plugin 'ú'r4) rÊÚgetEffectiveLevelÚloggingÚDEBUGÚdebug)rJr(Ú pass_itemráÚresults r,zPluginCollection.run_event-ð Ð$ˆ Ø—kk 
ˆFØ#'×#6Ñ#6×#:Ñ#:¸6À;Ó#Oˆ Ü×&¬'¯-©-Ò ˜I d VÐ+@À×AUÑAUÐ@VÐVWÐÙ ÑÑ/‘áÑ) &Ñ)àÑð
ðÔØˆ r.có*|jd||¬«S)startup)rOrP©rNs r,rQzPluginCollection.on_startupEsØ~‰~˜ÀˆFr.có$|jd«S)shutdownrûrTs r,rUzPluginCollection.on_shutdownHsØ~‰~˜)r.có,|jd|||¬«S)serve)r6rYrWs r,rZzPluginCollection.on_serveKsð~‰~˜g v°fÀgˆNr.có&|jd|«S)Nr6r\s r,r]zPluginCollection.on_configPsØ~‰~˜Ó/r.có(|jd|¬«S)NÚ pre_build©r6r\s r,r_zPluginCollection.on_pre_buildSsØ~‰~˜k°&ˆ9r.có*|jd||¬«S)Nrbrras r,rczPluginCollection.on_filesVsØ~‰~˜g u°Vˆ<r.có,|jd|||¬«S)Nrf©r6rbres r,rgzPluginCollection.on_navYóØ~‰~˜e ¸uˆEr.có,|jd|||¬«S)Nrjrris r,rkzPluginCollection.on_env\rr.có(|jd|¬«S)
post_buildrr\s r,rmzPluginCollection.on_post_build_sØ~‰~˜l°6ˆ:r.có(|jd|¬«S) build_error)rpros r,rqzPluginCollection.on_build_errorbsØ~‰~˜m°5ˆ9r.có,|jd|||¬«S) pre_template©rur6rss r,rvz PluginCollection.on_pre_templateesð~‰~˜n¨hÀmÐ\bˆcr.có,|jd|||¬«S)template_contextrrxs r,rzz$PluginCollection.on_template_contextjs#ð~‰~Ø  °}ÈVðó
ð
r.có,|jd|||¬«S)
post_templaterr}s r,rz!PluginCollection.on_post_templateqs$ð~‰~Ø ˜^¸=ÐQWðó
ð
r.có,|jd|||¬«S)pre_pagerrs r,zPluginCollection.on_pre_pagexsØ~‰~˜j¨$°vÀUˆKr.có*|jd||¬«S)NrЩrr6r…s r,r†z$PluginCollection.on_page_read_source{sØ~‰~Ð0°tÀFˆKr.có.|jd||||¬«S)
page_markdown©rr6rbrˆs r,z!PluginCollection.on_page_markdown~sð~‰~˜o¨x¸dÈ6ÐY^ˆ_r.có.|jd||||¬«S) page_contentrs r,z PluginCollection.on_page_contentƒsð~‰~˜n¨d¸ÀfÐTYˆZr.có.|jd||||¬«S) page_context)rr6rfrs r,rz PluginCollection.on_page_contextˆsð~‰~˜n¨g¸ÐUXˆYr.có,|jd|||¬«S)NÚ post_pagerr“s r,r•zPluginCollection.on_post_pagesØ~‰~˜k¨6¸ÀVˆ~ÓLr.rr)zCombinedEvent | CallablerÏr—r˜)r˜r2)r$r2r˜)r(r˜r)r(rr˜r)r(r™)rXrr6rrYrr˜r)r6rr˜r)rbrr6rr˜r)rfrr6rrbrr˜r)rjrr6rrbr)rtr rur6rr˜r )ryrrur6rr˜r)r~rur6rr˜)rrr6rrbrr˜r)
r‰rrr6rrbrr˜)
rrrr6rrbrr˜)
ryrrrr6rrfrr˜r)r”rrr6rr˜)r<r rQrUrZr]r_rcrgrkrmrqrvrzrr†r‘r•Ú
__classcell__©s@r,õø…ñð Óõ \`ðØðØ'?ðØNXðà
óõ.NðÚØ
ÚØó0GóOØOØ3CðOØNVðOà óOó
FóFódØdØ;>ðdØHXðdà ódð

Ø
Ø:=ð
ØGWð
à ó
ð
Ø
Ø58ð
ØBRð
à ó
óLóLð`Øð`Ø&*ð`Ø4Dð`ØMRð`à ó`ð
[Øð[Ø"&ð[Ø0@ð[ØINð[à ó[ð
ZØZØ15ðZØ?OðZØV`ðZà óZ÷
Mr.có,eZdZdZdˆfd ZddZˆxZS)ÚPrefixedLoggerz(A logger adapter to prefix log messages.có4t||i«||_y)
Initialize the logger adapter.
Arguments:
prefix: The string to insert in front of every message.
logger: The logger instance.
N)r*)rJr*ÚloggerrÌs €r,zPrefixedLogger.__init__”sø€ô ј Ôˆ r.có(|jd||fS)