[Python-projects] what to do with E0611 errors that complain on dynamic modules?

2011-08-11 Thread Hans Sebastian
Hi all, I need some advice about what to do with a pylint result. The code in which pylint runs looks similar to this try: import module1.submodule1.submodule2.dynamicthing except: logger.warn('failed to import dynamicthing') And the result is E0611: No name 'dynamicthing' in module 'm

Re: [Python-projects] pylint bugs day ?

2011-07-01 Thread Hans Sebastian
Hi Sylvain, Is the bug day still on? What day will it be? Thanks -hans 2011/6/20 Sylvain Thénault > On 17 juin 12:09, Hans Sebastian wrote: > > Hi, > > Hi, > > > I am interested to help out. I know very little of pylint's code base but > > I'll try m

Re: [Python-projects] pylint bugs day ?

2011-06-17 Thread Hans Sebastian
Hi, I am interested to help out. I know very little of pylint's code base but I'll try my best to tackle easy bugs. Otherwise, I can help repro bugs or verify bugs or wherever is needed. However Paris is a bit to far for me, but I can join remotely from SF. What time will it be? Thanks -hans 2

Re: [Python-projects] how to deal with windows specific modules?

2011-05-03 Thread Hans Sebastian
.InferenceError, ex: if re.search('win', modname) is not None: self.add_message("R0402", args=modname, node=importnode) else: self.add_message("F0401", args=modname, node=importnode) def register(linter): "&q

Re: [Python-projects] how to deal with windows specific modules?

2011-05-02 Thread Hans Sebastian
ion.lower() == "default": raise ValueError, 'Invalid section name: %s' % section if section in self._sections: > raise DuplicateSectionError(section) E DuplicateSectionError: Section 'IMPORTS' already exists Anyway, thanks

Re: [Python-projects] how to deal with windows specific modules?

2011-04-29 Thread Hans Sebastian
Oh sorry. I also comment out the register method in pylint/checkers/imports.py when I get this error. -hans 2011/4/29 Hans Sebastian > Jean-Michel, > > Thanks for the reply. We ended up using the pylint disable comment as well > for one or two unrelated cases. That's a cool

Re: [Python-projects] how to deal with windows specific modules?

2011-04-29 Thread Hans Sebastian
ode) def register(linter): """required method to auto register this checker """ linter.register_checker(MyImportChecker(linter)) Does anyone know what is wrong? Thank you very much all. -hans 2011/4/29 Jean-Michel Pichavant > Hans Sebastian w

[Python-projects] how to deal with windows specific modules?

2011-04-28 Thread Hans Sebastian
Hi, I need help or suggestions from you guys for a problem that I have with pylint code E0401: F0401: 6: Unable to import 'win32api' F0401: 6: Unable to import 'win32con' The software/package that I run pylint against supports multiple platforms. One of them is Windows and for the windows buil

Re: [Python-projects] pylint exits with too many open files

2011-02-17 Thread Hans Sebastian
2011/2/16 Jürgen Hermann > > My task is basically to find all python scripts in the source repository > and run pylint on each. > > The best way to do that is to make your scripts (almost) look like any > other module in your package, and then either start them via "python -m > yourpkg.scripts.fo

Re: [Python-projects] pylint exits with too many open files

2011-02-16 Thread Hans Sebastian
2011/2/15 Hans Sebastian > Thanks for the reply Sylvain, > > 2011/2/14 Sylvain Thénault > > On Tue, Feb 15, 2011 at 12:06 AM, Hans Sebastian >> wrote: >> > Hi Sylvain Thenault, >> >> Hi, >> >> > My name is Hans. For a few days I'

Re: [Python-projects] pylint exits with too many open files

2011-02-16 Thread Hans Sebastian
Thanks for the reply Sylvain, 2011/2/14 Sylvain Thénault > On Tue, Feb 15, 2011 at 12:06 AM, Hans Sebastian > wrote: > > Hi Sylvain Thenault, > > Hi, > > > My name is Hans. For a few days I've started using pylint, been liking it > > very much but have