diff options
author | Adam Dinwoodie <adam@dinwoodie.org> | 2013-03-18 20:54:14 +0000 |
---|---|---|
committer | Adam Dinwoodie <adam@dinwoodie.org> | 2013-03-18 20:54:14 +0000 |
commit | d824986c14eb9f6bbe49a79382e1cddd4a32c0d2 (patch) | |
tree | b2c9258fb74bd45e7d2ae8176da222d5e3983a0b /markdown/extensions/__init__.py | |
parent | 7b05d336106a4d709f3f8a86e688c5d010b2cfe2 (diff) | |
download | markdown-d824986c14eb9f6bbe49a79382e1cddd4a32c0d2.tar.gz markdown-d824986c14eb9f6bbe49a79382e1cddd4a32c0d2.tar.bz2 markdown-d824986c14eb9f6bbe49a79382e1cddd4a32c0d2.zip |
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/__init__.py')
-rw-r--r-- | markdown/extensions/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/markdown/extensions/__init__.py b/markdown/extensions/__init__.py index 960d8f9..184c4d1 100644 --- a/markdown/extensions/__init__.py +++ b/markdown/extensions/__init__.py @@ -1,9 +1,10 @@ -from __future__ import unicode_literals """ Extensions ----------------------------------------------------------------------------- """ +from __future__ import unicode_literals + class Extension(object): """ Base class for extensions to subclass. """ def __init__(self, configs = {}): |