Re: Script Optimization

2008-05-06 Thread lev
On May 4, 10:04 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 04 May 2008 17:01:15 -0300, lev <[EMAIL PROTECTED]> escribió: > > >> * Change indentation from 8 spaces to 4 > > I like using tabs because of the text editor I use, the script at > > the end is with 4 though. > > Can't

Re: Script Optimization

2008-05-04 Thread Gabriel Genellina
En Sun, 04 May 2008 17:01:15 -0300, lev <[EMAIL PROTECTED]> escribió: >> * Change indentation from 8 spaces to 4 > I like using tabs because of the text editor I use, the script at > the end is with 4 though. Can't you configure it to use 4 spaces per indent - and not use "hard" tabs? >> * R

Re: Script Optimization

2008-05-04 Thread lev
> * Remove newlines introduced by email > * Move imports to start of file used imports of the edited script you sent. > * Change indentation from 8 spaces to 4 I like using tabs because of the text editor I use, the script at the end is with 4 though. > * Move main() to bottom of script > *

Re: Script Optimization

2008-05-04 Thread David
Eh, I forgot the attachment. #!/usr/bin/env python import md5 from glob import glob from optparse import OptionParser from os import chdir, path, rename, remove from sys import argv def check(checksums): checksums = open(checksums, 'r') chgfiles = {} msngfiles = [] for fline in ch

Re: Script Optimization

2008-05-04 Thread David
On Sun, May 4, 2008 at 4:43 AM, lev <[EMAIL PROTECTED]> wrote: > Can anyone provide some advice/suggestions to make a script more > precise/efficient/concise, etc.? Hi, I started tidying up the script a bit, but there are some parts I don't understand or look buggy. So I'm forwarding you the vers

Re: Script Optimization

2008-05-04 Thread David
> It's too long to post here (160 lines) so here's the link: > http://uppit.com/d2/CKOYHE/af78a6bd3e21a19d5871abb9b879/utils.py > (if that doesn't work: http://uppit.com/CKOYHE) > > Thanks in advance, > lev Neither link works for me. I get an error page "Error: invalid download linnk". Ho