Changeset 71

Show
Ignore:
Timestamp:
06/21/06 07:41:36 (2 years ago)
Author:
mk
Message:

Disable two pylint import warnings.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mk/cheesecake/cheesecake_index.py

    r69 r71  
    685685    max_value = 50 
    686686 
     687    disabled_messages = [ 
     688        'W0403', # relative import 
     689        'W0406', # importing of self 
     690    ] 
     691    pylint_args = ' '.join(map(lambda x: '--disable-msg=%s' % x, disabled_messages)) 
     692 
    687693    def compute(self, files_list, package_dir): 
    688694        self.value = 0 
     
    701707 
    702708            self.cheesecake.log.debug("Running pylint on file " + fullpath) 
    703             rc, output = run_cmd("pylint " + fullpath
     709            rc, output = run_cmd("pylint %s %s" % (self.pylint_args, fullpath)
    704710            if rc: 
    705711                self.cheesecake.log.debug("encountered an error (%d)." % rc) 
  • branches/mk/tests/unit/_helper_cheesecake.py

    r66 r71  
    66 
    77DATA_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '../data/')) 
     8 
     9class Glutton(object): 
     10    "Eat everything." 
     11    def __getattr__(self, name): 
     12        return Glutton() 
     13 
     14    def __setattr__(self, name, value): 
     15        pass 
     16 
     17    def __call__(self, *args, **kwds): 
     18        pass