summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorgabrieldemarmiesse <gabriel.demarmiesse@teraki.com>2018-07-01 12:49:48 +0200
committergabrieldemarmiesse <gabrieldemarmiesse@gmail.com>2018-08-11 15:18:18 +0200
commiteea6e8a341104dc93f850fbe8be5c25281b8667e (patch)
tree2f5f5a69a1fb674d06dab555ba30a725c4afbe60 /Cython/Compiler/ModuleNode.py
parentcd6113fc02aa150a386ba3cb1084f1a792338d22 (diff)
downloadcython-eea6e8a341104dc93f850fbe8be5c25281b8667e.tar.gz
Added the pep8 test to travis. All the warnings are disabled and only a few error checks are enabled.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 9bbccb86c..8a9186e01 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -113,7 +113,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
env.doc = self.doc = None
elif Options.embed_pos_in_docstring:
env.doc = EncodedString(u'File: %s (starting at line %s)' % Nodes.relative_position(self.pos))
- if not self.doc is None:
+ if self.doc is not None:
env.doc = EncodedString(env.doc + u'\n' + self.doc)
env.doc.encoding = self.doc.encoding
else: