I don't find any errors; I can only guess that jenkins is incorrect.
Running pep8
does produce 3 times the warning E124 closing bracket does not match visual indentation
, which is probably also why jenkins complains here.
For this particular case (Django URL patterns), I tend to align things as follows:
urlpatterns = patterns(
'',
(r'', include(v1_api.urls)),
url(
r"^ajax/photos/upload/(?P<slug>[-_\w]+)/$",
"medicms.views.upload_photos",
name="upload_photos"
),
url(
r"^ajax/photos/recent/$",
"medicms.views.recent_photos",
name="recent_photos"
),
)
which at least shuts up pep8
, and makes for shorter lines overall.