From 6f6f89de0d494fffd2aba19aa48c06d39608f9ee Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Sat, 13 Mar 2021 15:12:54 +0200 Subject: [PATCH] build: nix: Drop unused imports Print function has been supported since Python since 2.6, so there's no need to use the import. --- nix/build-all.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nix/build-all.py b/nix/build-all.py index 1f136d1459..0e888c4bcd 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -49,15 +49,11 @@ # $ brew install git bison autoconf automake freetype libffi cmake # # # ############################################################################### - -from __future__ import print_function - import logging import os import sys import subprocess as sp import shutil -import time import tarfile import multiprocessing @@ -838,7 +834,7 @@ if "IfcOpenShell-Python" in targets: run([make, "-j%s" % (IFCOS_NUM_BUILD_PROCS,), "_ifcopenshell_wrapper"], cwd=python_dir) run([make, "install/local"], cwd=os.path.join(python_dir, "ifcwrap")) - module_dir = os.path.dirname(run([PYTHON_EXECUTABLE, "-c", "from __future__ import print_function; import inspect, ifcopenshell; print(inspect.getfile(ifcopenshell))"])) + module_dir = os.path.dirname(run([PYTHON_EXECUTABLE, "-c", "import inspect, ifcopenshell; print(inspect.getfile(ifcopenshell))"])) if get_os() != "Darwin": # TODO: This symbol name depends on the Python version?