Assertions that are always true

2012-05-27 Thread Jakub Wilk
It's a mistake to write assert(tilsit, 'Never at the end of the week, sir.') instead of assert tilsit, 'Never at the end of the week, sir.' The former assertion is always true, and thus no-op. Python >= 2.6 emits a SyntaxWarning about this. I implemented lintian4python check for s

String exceptions

2012-05-27 Thread Jakub Wilk
I implemented a check for string exception in lintian4python and run it on the whole archive (which was a slightly out of date sid). The results are attached. Sadly, despite a MBF almost 2 years ago (thanks, Sandro!), there are still tons of packages using this ex-feature. Not only the old bug