From acecd4ec4ebd65077f52335639371853e6918da5 Mon Sep 17 00:00:00 2001
From: Michel Alexandre Salim <salimma@fedoraproject.org>
Date: Sun, 14 Feb 2016 21:40:37 +0700
Subject: [PATCH 1/2] PEP8 has two conflicting rules about what should be at
the top of the file: - version bookkeeping info (note: not a recommended
practice anyway):
https://www.python.org/dev/peps/pep-0008/#version-bookkeeping - imports
https://www.python.org/dev/peps/pep-0008/#imports
and since pep8 1.6 the latter takes precedence, resulting in multiple
errors like this:
E402 module level import not at top of file
Resolve this for now by moving the version string to after the imports.
---
cliapp/__init__.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cliapp/__init__.py b/cliapp/__init__.py
index 7e0aca1..fcb934d 100644
--- a/cliapp/__init__.py
+++ b/cliapp/__init__.py
@@ -27,9 +27,6 @@ Homepage: http://liw.fi/cliapp/
'''
-__version__ = '1.20160109'
-
-
from .util import MemoryProfileDumper
from .fmt import TextFormat
from .app import Application, AppException
@@ -45,4 +42,7 @@ from .plugin import Plugin
from .pluginmgr import PluginManager
+__version__ = '1.20160109'
+
+
__all__ = locals()
--
2.5.0