aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-08-12 13:54:25 -0400
committerWaylan Limberg <waylan@gmail.com>2008-08-12 13:54:25 -0400
commitac578bc2e55183ff0d6d9002ccfdb82d38778a2b (patch)
tree781d19aee41954382ceba87a511a3bd2fbc7dc22 /markdown.py
parent57efe86c611f9347d0259b2dbbab26d79385a58c (diff)
downloadmarkdown-ac578bc2e55183ff0d6d9002ccfdb82d38778a2b.tar.gz
markdown-ac578bc2e55183ff0d6d9002ccfdb82d38778a2b.tar.bz2
markdown-ac578bc2e55183ff0d6d9002ccfdb82d38778a2b.zip
Removed depreciated 'source' keyword argument from Markdown.__init__() in preparation for 2.0. This should be the last of any depreciated features.
Diffstat (limited to 'markdown.py')
-rwxr-xr-xmarkdown.py7
1 files 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 = []