Showing 9,525 of 13,510 total issues
Consider simplifying this complex logical expression. Open
Open
if LA74 == IDENTIFIER:
LA74_256 = self.input.LA(3)
if (self.synpred142()) :
alt74 = 1
Consider simplifying this complex logical expression. Open
Open
if LA95 == IDENTIFIER:
LA95_259 = self.input.LA(3)
if (self.synpred188()) :
alt95 = 1
Consider simplifying this complex logical expression. Open
Open
if (LA35_1 == 65) :
alt35 = 2
elif ((IDENTIFIER <= LA35_1 <= FLOATING_POINT_LITERAL) or LA35_1 == 62 or LA35_1 == 66 or (68 <= LA35_1 <= 69) or (72 <= LA35_1 <= 74) or (77 <= LA35_1 <= 79)) :
alt35 = 1
else:
Consider simplifying this complex logical expression. Open
Open
if LA95 == 62:
LA95_283 = self.input.LA(3)
if (self.synpred188()) :
alt95 = 1
Consider simplifying this complex logical expression. Open
Open
if ItemType == 'Protocol' and ItemMode == 'Produced':
LibraryList = EotGlobalData.gProducedProtocolLibrary
elif ItemType == 'Protocol' and ItemMode == 'Consumed':
LibraryList = EotGlobalData.gConsumedProtocolLibrary
elif ItemType == 'Protocol' and ItemMode == 'Callback':
Consider simplifying this complex logical expression. Open
Open
if type(object) is _OLD_INSTANCE_TYPE:
# If the passed object is an instance of an old-style class,
# document its available methods instead of its value.
object = object.__class__
elif not (inspect.ismodule(object) or
Consider simplifying this complex logical expression. Open
Open
if type(object) is _OLD_INSTANCE_TYPE:
# If the passed object is an instance of an old-style class,
# document its available methods instead of its value.
object = object.__class__
elif not (inspect.ismodule(object) or
Consider simplifying this complex logical expression. Open
Open
if tokentype == DEDENT:
lineno, thisindent = start
# close nested classes and defs
while stack and stack[-1][1] >= thisindent:
del stack[-1]
Consider simplifying this complex logical expression. Open
Open
if ((year >= EPOCH_YEAR) and (1 <= month <= 12) and (1 <= mday <= 31) and
(0 <= hour <= 24) and (0 <= min <= 59) and (0 <= sec <= 61)):
return timegm(tt)
else:
return None
Consider simplifying this complex logical expression. Open
Open
if c == '_' and header:
new = new + ' '; i = i+1
elif c != ESCAPE:
new = new + c; i = i+1
elif i+1 == n and not partial:
Consider simplifying this complex logical expression. Open
Open
if self.user and (self.prefix or self.exec_prefix or self.home or
self.install_base or self.install_platbase):
raise DistutilsOptionError("can't combine user with with prefix/"
"exec_prefix/home or install_(plat)base")
Consider simplifying this complex logical expression. Open
Open
if ((self.install_lib is None and
self.install_purelib is None and
self.install_platlib is None) or
self.install_headers is None or
self.install_scripts is None or
Consider simplifying this complex logical expression. Open
Open
if not (isinstance(defn, tuple) and
(len (defn) == 1 or
(len (defn) == 2 and
(isinstance(defn[1], str) or defn[1] is None))) and
isinstance(defn[0], str)):
Consider simplifying this complex logical expression. Open
Open
if isinstance(node, Str):
return node.s
elif isinstance(node, Num):
return node.n
elif isinstance(node, Tuple):
Consider simplifying this complex logical expression. Open
Open
if w1 == 'default':
default = 1
elif w1 == 'machine' and w2:
host = w2.lower()
i = i + 1
Consider simplifying this complex logical expression. Open
Open
if type(object) is _OLD_INSTANCE_TYPE:
# If the passed object is an instance of an old-style class,
# document its available methods instead of its value.
object = object.__class__
elif not (inspect.ismodule(object) or
Consider simplifying this complex logical expression. Open
Open
if tokentype == DEDENT:
lineno, thisindent = start
# close nested classes and defs
while stack and stack[-1][1] >= thisindent:
del stack[-1]
Consider simplifying this complex logical expression. Open
Open
if ((year >= EPOCH_YEAR) and (1 <= month <= 12) and (1 <= mday <= 31) and
(0 <= hour <= 24) and (0 <= min <= 59) and (0 <= sec <= 61)):
return timegm(tt)
else:
return None
Consider simplifying this complex logical expression. Open
Open
if c == '_' and header:
new = new + ' '; i = i+1
elif c != ESCAPE:
new = new + c; i = i+1
elif i+1 == n and not partial:
Consider simplifying this complex logical expression. Open
Open
if not (isinstance(defn, tuple) and
(len (defn) == 1 or
(len (defn) == 2 and
(isinstance(defn[1], str) or defn[1] is None))) and
isinstance(defn[0], str)):