Skip to content

Commit

Permalink
use _is_binary_operator
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Oct 26, 2018
1 parent 46af2bc commit e4b356a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopep8.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ def fix_w504(self, result):
newline_count = 0
newline_index = []
for index, t in enumerate(ts):
if t[0] == tokenize.OP and t[1] not in ".,(){}":
if _is_binary_operator(t[0], t[1]):
if t[2][0] == 1 and t[3][0] == 1:
operator_position = (t[2][1], t[3][1])
elif t[0] == tokenize.NAME and t[1] in ("and", "or"):
Expand Down

0 comments on commit e4b356a

Please sign in to comment.