[PATCH 01/11] nmweb: (pylint) use __future__.absolute_import
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Sun Feb 4 20:19:49 PST 2018
pylint --py3k suggests always including this in code that might run in
either python2 or python3. it selects the python3 default. (see
"pylint --help-msg=no-absolute-import" for more details)
---
contrib/notmuch-web/nmweb.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/contrib/notmuch-web/nmweb.py b/contrib/notmuch-web/nmweb.py
index add0d631..c6d437c5 100755
--- a/contrib/notmuch-web/nmweb.py
+++ b/contrib/notmuch-web/nmweb.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python
+from __future__ import absolute_import
+
import web
from notmuch import Database,Query,Message
import urllib
--
2.15.1
More information about the notmuch
mailing list