Simplify the version fetching

Bug #954252 reported by Andrea Crotti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Won't Fix
Undecided
Unassigned

Bug Description

The version.py can be safely executed with execfile to extract the version number, instead of using regular expressions.

Tags: mailman3

Related branches

Revision history for this message
Andrea Crotti (andrea-crotti-0) wrote :

I found out today that execfile doesn't exist anymore in python3k, so maybe it's not the best solution..

But leaving everything as it is, why bothering so much about the possibility to not find the file?

If opening the file fails than the directory structure is wrong, and same thing for the VERSION regexp matching, since both things are under control is not maybe easier to just let it blow up if something is wrong (of course it's no harm, just a few lines more)?

Barry Warsaw (barry)
Changed in mailman:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.