summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2017-07-17 10:11:16 +0200
committerStefan Behnel <stefan_ml@behnel.de>2017-07-17 10:11:16 +0200
commitc82c4942fd557d3087ed7f21159f77303dd53e41 (patch)
tree5acf459863273ee59605bbb641af430536242705
parenta2db27bb85d0daa4cc4b4b7d65c0e6a7cda5ec2a (diff)
downloadcython-c82c4942fd557d3087ed7f21159f77303dd53e41.tar.gz
minor indentation/code cleanup
-rw-r--r--Cython/Compiler/ExprNodes.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py
index 2eb12fb69..25e13790f 100644
--- a/Cython/Compiler/ExprNodes.py
+++ b/Cython/Compiler/ExprNodes.py
@@ -11866,16 +11866,16 @@ class CmpNode(object):
new_common_type = None
# catch general errors
- if type1 == str_type and (type2.is_string or type2 in (bytes_type, unicode_type)) or \
- type2 == str_type and (type1.is_string or type1 in (bytes_type, unicode_type)):
+ if (type1 == str_type and (type2.is_string or type2 in (bytes_type, unicode_type)) or
+ type2 == str_type and (type1.is_string or type1 in (bytes_type, unicode_type))):
error(self.pos, "Comparisons between bytes/unicode and str are not portable to Python 3")
new_common_type = error_type
# try to use numeric comparisons where possible
elif type1.is_complex or type2.is_complex:
- if op not in ('==', '!=') \
- and (type1.is_complex or type1.is_numeric) \
- and (type2.is_complex or type2.is_numeric):
+ if (op not in ('==', '!=')
+ and (type1.is_complex or type1.is_numeric)
+ and (type2.is_complex or type2.is_numeric)):
error(self.pos, "complex types are unordered")
new_common_type = error_type
elif type1.is_pyobject: