Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Markdown / extensions / __init__.pyc
Size: Mime:
ó
Âö™Wc@sLdZddlmZddlmZddlZdefd„ƒYZdS(uZ
Extensions
-----------------------------------------------------------------------------
iÿÿÿÿ(tunicode_literalsi(tparseBoolValueNt	ExtensioncBsVeZdZiZd„Zdd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	u( Base class for extensions to subclass. cOs¥t|ƒrC|ddk	r0|j|dƒntjdtƒnd|jƒkr”|ddk	r|j|jdiƒƒntjdtƒn|j|ƒdS(u( Initiate Extension and set up configs. iu
Extension classes accepting positional args is pending Deprecation. Each setting should be passed into the Class as a keyword. Positional args are deprecated and will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.uconfigsu(Extension classes accepting a dict on the single keyword "config" is pending Deprecation. Each setting should be passed into the Class as a keyword directly. The "config" keyword is deprecated and raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.N(tlentNonet
setConfigstwarningstwarntDeprecationWarningtkeystpop(tselftargstkwargs((s:build/lib.linux-x86_64-2.7/markdown/extensions/__init__.pyt__init__s	
	
ucCs&||jkr|j|dS|SdS(u8 Return a setting for the given key or an empty string. iN(tconfig(Rtkeytdefault((s:build/lib.linux-x86_64-2.7/markdown/extensions/__init__.pyt	getConfig5scCs5tg|jjƒD]}||j|ƒf^qƒS(u( Return all configs settings as a dict. (tdictRR	R(RR((s:build/lib.linux-x86_64-2.7/markdown/extensions/__init__.pyt
getConfigs<scCs1g|jjƒD]}||j|df^qS(u5 Return all config descriptions as a list of tuples. i(RR	(RR((s:build/lib.linux-x86_64-2.7/markdown/extensions/__init__.pyt
getConfigInfo@scCsjt|j|dtƒr)t|ƒ}n|j|ddkrUt|dtƒ}n||j|d<dS(u8 Set a config setting for `key` with the given `value`. it
preserve_noneN(t
isinstanceRtboolRRtTrue(RRtvalue((s:build/lib.linux-x86_64-2.7/markdown/extensions/__init__.pyt	setConfigDs
cCsIt|dƒr|jƒ}nx$|D]\}}|j||ƒq%WdS(u> Set multiple config settings given a dict or list of tuples. uitemsN(thasattrtitemsR(RRRR((s:build/lib.linux-x86_64-2.7/markdown/extensions/__init__.pyRLscCs&td|jj|jjfƒ‚dS(u
        Add the various proccesors and patterns to the Markdown Instance.

        This method must be overriden by every extension.

        Keyword arguments:

        * md: The Markdown instance.

        * md_globals: Global variables in the markdown module namespace.

        u8Extension "%s.%s" must define an "extendMarkdown"method.N(tNotImplementedErrort	__class__t
__module__t__name__(Rtmdt
md_globals((s:build/lib.linux-x86_64-2.7/markdown/extensions/__init__.pytextendMarkdownTs
(R!R t__doc__RRRRRRRR$(((s:build/lib.linux-x86_64-2.7/markdown/extensions/__init__.pyRs						(R%t
__future__RtutilRRtobjectR(((s:build/lib.linux-x86_64-2.7/markdown/extensions/__init__.pyt<module>s