Replace subprocess.run(..., check=True) with subprocess.check_call().
[nmigen-boards.git] / nmigen_boards / blackice.py
index 399e29c102b7704a0833fe0671e1ec57f89d84b8..591f74d8008568ba874b6956ecd3a295cad4d9dc 100644 (file)
@@ -69,7 +69,7 @@ class BlackIcePlatform(LatticeICE40Platform):
 
     def toolchain_program(self, products, name):
         with products.extract("{}.bin".format(name)) as bitstream_filename:
-            subprocess.run(["cp", bitstream_filename, "/dev/ttyACM0"], check=True)
+            subprocess.check_call(["cp", bitstream_filename, "/dev/ttyACM0"])
 
 
 if __name__ == "__main__":