On 01/19/2019 06:15 AM, Tony Jones wrote:
On 1/17/19 1:45 AM, Seeteena Thoufeek wrote:
+if sys.version_info[0] < 3:
+import cPickle
+else:
+import _pickle as cPickle
Do you really need this?
pickle is already in Python2.
Also, did you test these changes on Python3?
I think you'll
On 1/20/19 11:27 AM, Jonathan Corbet wrote:
> On Fri, 18 Jan 2019 16:45:04 -0800
> Tony Jones wrote:
>
>> On 1/17/19 1:45 AM, Seeteena Thoufeek wrote:
>>
>>> +if sys.version_info[0] < 3:
>>> +import cPickle
>>> +else:
>>> +import _pickle as cPickle
>>
>> Do you really need this?
>>
>> p
On Fri, 18 Jan 2019 16:45:04 -0800
Tony Jones wrote:
> On 1/17/19 1:45 AM, Seeteena Thoufeek wrote:
>
> > +if sys.version_info[0] < 3:
> > +import cPickle
> > +else:
> > +import _pickle as cPickle
>
> Do you really need this?
>
> pickle is already in Python2.
Did you mean in Python3
On 1/17/19 1:45 AM, Seeteena Thoufeek wrote:
> +if sys.version_info[0] < 3:
> +import cPickle
> +else:
> +import _pickle as cPickle
Do you really need this?
pickle is already in Python2.
Also, did you test these changes on Python3?
I think you'll find you also need the following hunk
Support both Python 2 and Python 3 in exported-sql-viewer.py.
``print`` is now a function rather than a statement. This should have
no functional change.
Add support of _pickle module in Python3
Signed-off-by: Seeteena Thoufeek
Reviewed-by: Ravi Bangoria
---
tools/perf/scripts/python/exported-
5 matches
Mail list logo