Не удается пройти нелогичную строку pep8 error

Я уже некоторое время пытаюсь это исправить и просто не могу заставить его пройти pep8. Вот мой код:

1.

if (len(regex) > 2 and regex[0] == '(' and regex[-1] == ')' and 
    sum(regex.count(char) for char in splitter) == 1 and 
    regex.count('(') == 1 and regex.count(')') == 1):

    print('hi')

2.

if (len(regex) > 2 and regex[0] == '(' and regex[-1] == ')' and 
    sum(regex.count(char) for char in splitter) == 1 and 
    regex.count('(') == 1 and regex.count(')') == 1):

    print('hi')

3.

if (len(regex) > 2 and regex[0] == '(' and regex[-1] == ')' 
    and regex.count('(') > 1):

    print('hi')

Я получаю следующую ошибку PEP8 для каждого из 3 операторов if:

E125 continuation line does not distinguish itself from next logical line

Есть идеи, что с ней не так? Строки с отступом в первой скобке, так что я действительно не понимаю.

8
задан user3050527 20 March 2014 в 01:21
поделиться