Skip to content

Commit b41f2fa

Browse files
author
Waylan Limberg
committed
Deprecate positional args for markdownFromFile also.
1 parent b91a37b commit b41f2fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

markdown/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,10 @@ def markdownFromFile(*args, **kwargs):
484484
c += 1
485485
if c == len(pos):
486486
break
487+
if len(args):
488+
warnings.warn('Positional arguments are pending depreacted in Markdown '
489+
'and will be deprecated in version 2.6. Use keyword '
490+
'arguments only.', PendingDeprecationWarning)
487491

488492
md = Markdown(**kwargs)
489493
md.convertFile(kwargs.get('input', None),

0 commit comments

Comments
 (0)