summaryrefslogtreecommitdiff
path: root/markdown/extensions/meta.py
diff options
context:
space:
mode:
authorAdam Dinwoodie <adam@dinwoodie.org>2013-03-18 20:54:14 +0000
committerAdam Dinwoodie <adam@dinwoodie.org>2013-03-18 20:54:14 +0000
commitd824986c14eb9f6bbe49a79382e1cddd4a32c0d2 (patch)
treeb2c9258fb74bd45e7d2ae8176da222d5e3983a0b /markdown/extensions/meta.py
parent7b05d336106a4d709f3f8a86e688c5d010b2cfe2 (diff)
downloadpython-markdown-d824986c14eb9f6bbe49a79382e1cddd4a32c0d2.tar.gz
Future imports go after the docstrings
A `from __future__ import ...` statement must go after any docstrings; since putting them before the docstring means the docstring loses its magic and just becomes a string literal. That then causes a syntax error if there are further future statements after the false docstring. This fixes issue #203, using the patch provided by @Arfrever.
Diffstat (limited to 'markdown/extensions/meta.py')
-rw-r--r--markdown/extensions/meta.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/meta.py b/markdown/extensions/meta.py
index a2fbe80..aaff436 100644
--- a/markdown/extensions/meta.py
+++ b/markdown/extensions/meta.py
@@ -1,4 +1,3 @@
-from __future__ import unicode_literals
"""
Meta Data Extension for Python-Markdown
=======================================
@@ -41,6 +40,7 @@ License: BSD (see ../LICENSE.md for details)
"""
from __future__ import absolute_import
+from __future__ import unicode_literals
from . import Extension
from ..preprocessors import Preprocessor
import re