On 10/18/19 2:53 PM, Tom Rini wrote:
Use the 2to3 tool to perform numerous automatic conversions from Python
2 syntax to Python 3.  Also fix whitespace problems that Python 3
catches that Python 2 did not.

diff --git a/test/py/conftest.py b/test/py/conftest.py

  import pytest
  from _pytest.runner import runtestprotocol
  import re
-import StringIO
+import io
  import sys

I think that list used to be sorted. IIRC some PEP8 tools complain about unsorted import lists.

-try:
-    import configparser
-except:
-    import ConfigParser as configparser
+import configparser

Now that this is a plain import statement, let's put it with all the others at the appropriate point in the sorted list above.


(Not sure if you want to merge fixes like this into this patch, or put them in path 7?)


I didn't validate that the large chunks of code that had TAB->spaces conversions didn't change anything other than the indentation whitespace...
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to