[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: need help updating imgsizer for python2.1



On  8 Jan 2002, Peter S Galbraith typed:
] I'm the maintainer for imgsizer, 
] 
]  http://packages.debian.org/unstable/web/imgsizer.html
] 
]                                  which used to be a perl script and is
] now a python script.  I don't know python.  The scripts loads "cmp.py"

The cmp module has been replace by filecmp. One (untested) way of fixing
it would be to change the line:

    import sys, os, getopt, cmp, string, re, urllib, commands

to

    import sys, os, getopt, string, re, urllib, commands
    if sys.version > '1.6':
	import filecmp as cmp
    else:
	import cmp

] The package currently depends on python1.5.  What should it depend on
] when fixed?

python


Regards,
Kim Oldfield



Reply to: