dmwm / PHEDEX

CMS data-placement suite
8 stars 18 forks source link

Modernize python scripts: simplejson and StringIO #1054

Closed nikmagini closed 7 years ago

nikmagini commented 7 years ago

Updating old scripts for modern python

py2.6+: json-->simplejson

py3 future compatibility from https://github.com/dmwm/PHEDEX/pull/1043/commits/a151aa952d9613acf9529c461e6bb904ef8e6d8c : StringIO --> io Note that StringIO.StringIO needs to be changed either to io.StringIO OR StringIO.BytesIO, depending on usecase. E.g. pycurl requires bytes strings.