Madan U S wrote:
On Wed, 12 Apr 2006 17:56:07 +0530, Madan U S <[EMAIL PROTECTED]> wrote:

> On Wed, 12 Apr 2006 17:24:28 +0530, Giovanni Bajo <[EMAIL PROTECTED]> > wrote:
 >
 >> Madan U S <[EMAIL PROTECTED]> wrote:
[snip]
 >> What are the other issues? I don't like patches to shut up warnings
 >> caused
 >> by bugs/imperfections in external tools. If the tools help finding out
 >> real
 >> bugs, that's fine, let's fix them. But I'm -1 on any patch that tries to
 >> adjust code so to shut down non-issues
 >
 > Agree.
 >
 >> and/or change our code to follow
 >> some
 >> coding convention (like the "is None" issue) the tools unilaterally
 >> decided
 >> it's the Good One(TM).
 >
> Okay... following up this mail, I will compile the list of errors from > pychecker and mention which ones I feel should be fixed. I will send a > patch once we have a consensus on which ones need to be fixed and which > ones need not be. would that be okay?
 >

Currently, I see the following warnings when I run pychecker on svnmerge.py

[EMAIL PROTECTED] /tmp/wc/trunk $ pychecker --version
0.8.14
[EMAIL PROTECTED] /tmp/wc/trunk $ pychecker /home/madan/wc/trunk/contrib/client-side/svnmerge.py
Processing svnmerge...

Warnings...

/home/madan/wc/trunk/contrib/client-side/svnmerge.py:85: Statement appears to have no effect /home/madan/wc/trunk/contrib/client-side/svnmerge.py:87: (False) shadows builtin /home/madan/wc/trunk/contrib/client-side/svnmerge.py:87: (True) shadows builtin /home/madan/wc/trunk/contrib/client-side/svnmerge.py:597: tempfile.mktemp is deprecated /home/madan/wc/trunk/contrib/client-side/svnmerge.py:795: No global (opts) found /home/madan/wc/trunk/contrib/client-side/svnmerge.py:966: Parameter (branch_props) not used /home/madan/wc/trunk/contrib/client-side/svnmerge.py:1121: Parameter (branch_props) not used /home/madan/wc/trunk/contrib/client-side/svnmerge.py:1154: Parameter (branch_props) not used /home/madan/wc/trunk/contrib/client-side/svnmerge.py:1267: Local variable (command_table) shadows global defined on line 1583 /home/madan/wc/trunk/contrib/client-side/svnmerge.py:1268: Local variable (global_opts) shadows global defined on line 1483 /home/madan/wc/trunk/contrib/client-side/svnmerge.py:1269: Local variable (common_opts) shadows global defined on line 1507


Out of these... I feel the following definitely need cleaning up... (remove branch_props from the parameter list) /home/madan/wc/trunk/contrib/client-side/svnmerge.py:966: Parameter (branch_props) not used /home/madan/wc/trunk/contrib/client-side/svnmerge.py:1121: Parameter (branch_props) not used /home/madan/wc/trunk/contrib/client-side/svnmerge.py:1154: Parameter (branch_props) not used

IIRC, I think these appear because have a lookup table of functions to call depending upon the command line arguments, so some functions need them and others don't. These may be harder to get rid of.

And the following need no action now, but will have to go away as we work our way on removing global variables (arent we gonna do that?) /home/madan/wc/trunk/contrib/client-side/svnmerge.py:795: No global (opts) found /home/madan/wc/trunk/contrib/client-side/svnmerge.py:1267: Local variable (command_table) shadows global defined on line 1583 /home/madan/wc/trunk/contrib/client-side/svnmerge.py:1268: Local variable (global_opts) shadows global defined on line 1483 /home/madan/wc/trunk/contrib/client-side/svnmerge.py:1269: Local variable (common_opts) shadows global defined on line 1507

I think these should be easily cleaned up. No reason for a local name to shadow a global one.

The following are bogus....
/home/madan/wc/trunk/contrib/client-side/svnmerge.py:85: Statement appears to have no effect /home/madan/wc/trunk/contrib/client-side/svnmerge.py:87: (False) shadows builtin /home/madan/wc/trunk/contrib/client-side/svnmerge.py:87: (True) shadows builtin /home/madan/wc/trunk/contrib/client-side/svnmerge.py:597: tempfile.mktemp is deprecated

Agreed.  This are for compatibility with older Pythons.

Regards,
Blair

_______________________________________________
Svnmerge mailing list
[email protected]
http://www.orcaware.com/mailman/listinfo/svnmerge

Reply via email to