[Bug 954252] [NEW] Simplify the version fetching

Public bug reported: The version.py can be safely executed with execfile to extract the version number, instead of using regular expressions. ** Affects: mailman Importance: Undecided Status: New ** Tags: mailman3 -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/954252 Title: Simplify the version fetching To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/954252/+subscriptions

** Branch linked: lp:~andrea-crotti-0/mailman/version -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/954252 Title: Simplify the version fetching To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/954252/+subscriptions

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)? -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/954252 Title: Simplify the version fetching To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/954252/+subscriptions

** Changed in: mailman Status: New => Won't Fix -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/954252 Title: Simplify the version fetching To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/954252/+subscriptions
participants (2)
-
Andrea Crotti
-
Barry Warsaw