Commit Graph

10 Commits

Author SHA1 Message Date
ZyX f073437f02 Remove the only remaining reference to `u'` string prefix 2014-09-14 14:28:52 +04:00
ZyX 06211cbe63 Unify imports
Now imports follow the following structure:

1. __future__ line: exactly one line allowed:

        from __future__ import (unicode_literals, division, absolute_import, print_function)

   (powerline.shell is the only exception due to problems with argparse).
2. Standard python library imports in a form `import X`.
3. Standard python library imports in a form `from X import Y`.
4. and 5. 2. and 3. for third-party (non-python and non-powerline imports).
6. 3. for powerline non-test imports.
7. and 8. 2. and 3. for powerline testing module imports.

Each list entry is separated by exactly one newline from another import. If
there is module docstring it goes between `# vim:` comment and `__future__`
import. So the structure containing all items is the following:

    #!/usr/bin/env python
    # vim:fileencoding=utf-8:noet

    '''Powerline super module'''

    import sys

    from argparse import ArgumentParser

    import psutil

    from colormath.color_diff import delta_e_cie2000

    from powerline.lib.unicode import u

    import tests.vim as vim_module

    from tests import TestCase

.
2014-09-01 00:25:24 +04:00
Andreas Schneider 538a41b25a docs: Fix building the docs without RTD theme.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-08-13 17:40:11 +02:00
Kim Silkebækken 151b3f1117 Use readthedocs theme for docs 2014-08-02 22:46:37 +04:00
ZyX 19b45e609a Fix documentation for threaded segments 2013-03-17 22:06:52 +04:00
Kim Silkebækken 111eaa27e8 Combine vim modelines and Python encoding declarations
Ref #314
2013-03-11 10:40:09 +01:00
Kim Silkebækken 6748701fcb Add vim modelines to all Python files
Added with `sed -i '2i# vim:fenc=utf-8:noet' `find -name '*.py'`` and
fixed in a couple of files without the UTF-8 encoding on top.

Ref #314
2013-03-11 08:11:25 +01:00
Kim Silkebækken 55ad48f0e6 Update sphinx configuration 2013-02-08 17:32:23 +01:00
Kim Silkebækken 9ba8570bf7 Update documentation and version 2012-12-17 15:24:42 +01:00
Kim Silkebækken f3a03aa26a Update docs structure for gh-pages 2012-12-14 15:16:38 +01:00