[PATCH] test: Make gen-threads work with python3

2014-11-02 Thread David Bremner
Jesse Rosenthal writes: > python3 doesn't allow dictionaries to be initialized with non-string > keywords. This presents problems on systems in which "python" means > "python3". We instead initalize the dictionary using the dict > comprehension and then update it with the values from the tree.

Re: [PATCH] test: Make gen-threads work with python3

2014-11-02 Thread David Bremner
Jesse Rosenthal jrosent...@jhu.edu writes: python3 doesn't allow dictionaries to be initialized with non-string keywords. This presents problems on systems in which python means python3. We instead initalize the dictionary using the dict comprehension and then update it with the values from

[PATCH] test: Make gen-threads work with python3

2014-11-01 Thread Tomi Ollila
On Fri, Oct 31 2014, "W. Trevor King" wrote: > On Fri, Oct 31, 2014 at 01:33:25PM -0400, Jesse Rosenthal wrote: >> We instead initalize the dictionary using the dict comprehension and >> then update it with the values from the tree. This will work with >> both python2 and python3. > > Dict

Re: [PATCH] test: Make gen-threads work with python3

2014-11-01 Thread Tomi Ollila
On Fri, Oct 31 2014, W. Trevor King wk...@tremily.us wrote: On Fri, Oct 31, 2014 at 01:33:25PM -0400, Jesse Rosenthal wrote: We instead initalize the dictionary using the dict comprehension and then update it with the values from the tree. This will work with both python2 and python3. Dict

[PATCH] test: Make gen-threads work with python3

2014-10-31 Thread Jesse Rosenthal
"W. Trevor King" writes: > On Fri, Oct 31, 2014 at 01:33:25PM -0400, Jesse Rosenthal wrote: >> We instead initalize the dictionary using the dict comprehension and >> then update it with the values from the tree. This will work with >> both python2 and python3. > > Dict comprehensions are new in

[PATCH] test: Make gen-threads work with python3

2014-10-31 Thread Jesse Rosenthal
python3 doesn't allow dictionaries to be initialized with non-string keywords. This presents problems on systems in which "python" means "python3". We instead initalize the dictionary using the dict comprehension and then update it with the values from the tree. This will work with both python2

[PATCH] test: Make gen-threads work with python3

2014-10-31 Thread W. Trevor King
On Fri, Oct 31, 2014 at 02:04:50PM -0400, Jesse Rosenthal wrote: > W. Trevor King writes: > > On Fri, Oct 31, 2014 at 01:33:25PM -0400, Jesse Rosenthal wrote: > >> We instead initalize the dictionary using the dict comprehension > >> and then update it with the values from the tree. This will work

[PATCH] test: Make gen-threads work with python3

2014-10-31 Thread W. Trevor King
On Fri, Oct 31, 2014 at 01:33:25PM -0400, Jesse Rosenthal wrote: > We instead initalize the dictionary using the dict comprehension and > then update it with the values from the tree. This will work with > both python2 and python3. Dict comprehensions are new in 2.7 [1,2], so this drops support

[PATCH] test: Make gen-threads work with python3

2014-10-31 Thread Jesse Rosenthal
python3 doesn't allow dictionaries to be initialized with non-string keywords. This presents problems on systems in which python means python3. We instead initalize the dictionary using the dict comprehension and then update it with the values from the tree. This will work with both python2 and

Re: [PATCH] test: Make gen-threads work with python3

2014-10-31 Thread W. Trevor King
On Fri, Oct 31, 2014 at 01:33:25PM -0400, Jesse Rosenthal wrote: We instead initalize the dictionary using the dict comprehension and then update it with the values from the tree. This will work with both python2 and python3. Dict comprehensions are new in 2.7 [1,2], so this drops support for

Re: [PATCH] test: Make gen-threads work with python3

2014-10-31 Thread W. Trevor King
On Fri, Oct 31, 2014 at 02:04:50PM -0400, Jesse Rosenthal wrote: W. Trevor King writes: On Fri, Oct 31, 2014 at 01:33:25PM -0400, Jesse Rosenthal wrote: We instead initalize the dictionary using the dict comprehension and then update it with the values from the tree. This will work with

Re: [PATCH] test: Make gen-threads work with python3

2014-10-31 Thread Jesse Rosenthal
W. Trevor King wk...@tremily.us writes: On Fri, Oct 31, 2014 at 01:33:25PM -0400, Jesse Rosenthal wrote: We instead initalize the dictionary using the dict comprehension and then update it with the values from the tree. This will work with both python2 and python3. Dict comprehensions are