cifar10-fast icon indicating copy to clipboard operation
cifar10-fast copied to clipboard

Backward compatibility for Python 3.5

Open scottclowe opened this issue 5 years ago • 0 comments

Changes the format strings from f-strings (introduced in Python 3.6) to str.format() (which has been around since Python 2.6).

f-strings are great, but not universally supported yet - I made this change for myself because I'm using Ubuntu 16.04 LTS, which ships with Python 3.5.

I also needed to explicitly turn lists of objects into strings when they were being concatenated, using map(str, x).

Thought I'd share this in case you wanted to incorporate it into the main code base.

scottclowe avatar Mar 25 '19 21:03 scottclowe