aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2014-09-12 20:33:13 -0400
committerWaylan Limberg <waylan@gmail.com>2014-09-12 20:33:13 -0400
commitb41f2fad483c1fa20841b5657b112421b10ffc40 (patch)
treeebd21c617063fc85b5ec6fc4cbc8067c6f7643c3
parentb91a37be0ab019fa1ee0b94014a6ed0c7ff5dbf5 (diff)
downloadmarkdown-b41f2fad483c1fa20841b5657b112421b10ffc40.tar.gz
markdown-b41f2fad483c1fa20841b5657b112421b10ffc40.tar.bz2
markdown-b41f2fad483c1fa20841b5657b112421b10ffc40.zip
Deprecate positional args for markdownFromFile also.
-rw-r--r--markdown/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py
index 502ef08..cbcee58 100644
--- a/markdown/__init__.py
+++ b/markdown/__init__.py
@@ -484,6 +484,10 @@ def markdownFromFile(*args, **kwargs):
c += 1
if c == len(pos):
break
+ if len(args):
+ warnings.warn('Positional arguments are pending depreacted in Markdown '
+ 'and will be deprecated in version 2.6. Use keyword '
+ 'arguments only.', PendingDeprecationWarning)
md = Markdown(**kwargs)
md.convertFile(kwargs.get('input', None),