[Scons-dev] SCons and octal constants
anatoly techtonik
techtonik at gmail.com
Tue Apr 29 03:09:31 EDT 2014
On Mon, Apr 28, 2014 at 7:49 PM, Russel Winder <russel at winder.org.uk> wrote:
> On Mon, 2014-04-28 at 14:26 +0300, anatoly techtonik wrote:
>> On Mon, Apr 28, 2014 at 10:52 AM, Russel Winder <russel at winder.org.uk> wrote:
>> >
>> > Actually I think it may be fairly straightforward using find, grep and
>> > emacs. Although there are quite a lot of octal constants I think it can
>> > be done fairly quickly as a single changeset.
>>
>> I am not sure how you would search for all numbers starting with 0 that
>> are not part of strings with these tools.
>>
>> \b0[1-9] ?
>
> Given the code base, I suspect:
>
> \<0[0-7][0-7][0-7]\>
>
> will catch a great deal of them, with some false positives due to
> timezones in ISO 8601 date-times; at least a start.
IMHO this is a start to nowhere. octals are not limited to file masks,
more than that - we need the recipe for users to help the port their
SConstruct files to Python 3.
So, a 2to3 reversing or an astroid solution would be a proper hack
worthy of engineering degree. =)
More information about the Scons-dev
mailing list