From ac578bc2e55183ff0d6d9002ccfdb82d38778a2b Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Tue, 12 Aug 2008 13:54:25 -0400 Subject: Removed depreciated 'source' keyword argument from Markdown.__init__() in preparation for 2.0. This should be the last of any depreciated features. --- markdown.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/markdown.py b/markdown.py index af611c8..f0bc0e8 100755 --- a/markdown.py +++ b/markdown.py @@ -1166,7 +1166,7 @@ class Markdown: """ - def __init__(self, source=None, # depreciated + def __init__(self, extensions=[], extension_configs={}, safe_mode = False): @@ -1175,7 +1175,6 @@ class Markdown: Keyword arguments: - * source: The text in Markdown format. Depreciated! * extensions: A list of extensions. If they are of type string, the module mdx_name.py will be loaded. If they are a subclass of markdown.Extension, they will be used @@ -1185,9 +1184,7 @@ class Markdown: """ - self.source = source - if source is not None: - message(WARN, "The `source` arg of Markdown.__init__() is depreciated and will be removed in the future. Use `instance.convert(source)` instead.") + self.source = None self.safeMode = safe_mode self.blockGuru = BlockGuru() self.registeredExtensions = [] -- cgit v1.2.3