Changeset 3406 in products


Ignore:
Timestamp:
Apr 5, 2012 9:08:25 AM (8 years ago)
Author:
potar
Message:

fixed quintagroup.plonetabs according with pyflakes

Location:
quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/base.py

    r3403 r3406  
    11try: 
    22    from zope.annotation.interfaces import IAnnotations 
     3    IAnnotations  # pyflakes 
    34except ImportError: 
    45    from zope.app.annotation.interfaces import IAnnotations 
    5  
    66from plone.browserlayer.layer import mark_layer 
    77 
  • quintagroup.plonetabs/branches/tests/quintagroup/plonetabs/tests/test_controlpanel.py

    r3403 r3406  
    7373        # Revert PloneTestCase's optimization 
    7474        # because this breaks our test 
    75         #### pyflakes.scripts.pyflakes, modified: 
    76         ## - return array of warnings instead of printing them 
    77         ## - honour pyflakes:ignore comments 
     75        from Products.CMFCore.Expression import getEngine 
     76        from Products.CMFCore.Expression import Expression 
     77 
    7878        def __init__(self, text): 
    7979            self.text = text 
    8080            if text.strip(): 
    8181                self._v_compiled = getEngine().compile(text) 
    82         from Products.CMFCore.Expression import Expression 
    8382 
    8483        optimized__init__ = Expression.__init__ 
Note: See TracChangeset for help on using the changeset viewer.