PyCQA / baron

IDE allow you to refactor code, Baron allows you to write refactoring code.
http://baron.pycqa.org
GNU Lesser General Public License v3.0
289 stars 50 forks source link

Add missing comma in Python string list #156

Closed EhsanKia closed 4 years ago

EhsanKia commented 5 years ago

In Python, two adjacent strings get concatenated implicitly. Missing commas in multi-line string lists is a common source of bugs causing unwanted string concatenation. In this case, it is clear that this comma is missing by mistake and there should not be a concatenation.

EhsanKia commented 5 years ago

Relevant bug for the failing CI with Py2.6 https://travis-ci.community/t/issue-with-python-2-6-on-linux/3861

The solution being to either stick with Trusty, or drop 2.6 check. Either way this specific PR should work on 2.6 as well as other versions.

Psycojoker commented 4 years ago

Nice catch, thx :)

I've removed python 2.6 from travis since python 2 is officially EOL, it really doesn't make sens anymore to support it.