Skip to content

Commit

Permalink
stop jenkins complaining about "bad quotes"
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcheasley committed Jan 31, 2017
1 parent 78914c9 commit 09f6ea4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plone/api/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ def get_registry_record(name=None, interface=None, default=MISSING):

if interface is not None and not IInterface.providedBy(interface):
raise InvalidParameterError(
u"The interface parameter has to derive from "
u"zope.interface.Interface"
u'The interface parameter has to derive from '
u'zope.interface.Interface'
)

registry = getUtility(IRegistry)
Expand Down Expand Up @@ -327,7 +327,7 @@ def get_registry_record(name=None, interface=None, default=MISSING):
records = [key for key in registry.records.keys() if name in key]
if records:
msg = (
"{0}\n"
'{0}\n'
'Did you mean?:\n'
'{1}'.format(msg, '\n'.join(records))
)
Expand Down

1 comment on commit 09f6ea4

@jenkins-plone-org
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adamcheasley Jenkins CI reporting about code analysis
See the full report here: http://jenkins.plone.org/job/package-plone.api/27/violations

src/plone/api/content.py:269:1: C901 'delete' is too complex (15)
src/plone/api/content.py:361:1: C901 '_wf_transitions_for' is too complex (13)
src/plone/api/content.py:426:1: C901 'transition' is too complex (13)

Follow these instructions to reproduce it locally.

Please sign in to comment.