summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorAlessia Marcolini <98marcolini@gmail.com>2021-10-08 09:58:19 +0000
committerGitHub <noreply@github.com>2021-10-08 09:58:19 +0000
commitaf5a3fc361b3870fb413aaad9df1dac13f39d8ac (patch)
treeecd95b97f2c981de20ce31a8904b91055ea5018d /numpy/distutils
parentfb6d3928c847058301ff2365fae90916e8850640 (diff)
downloadnumpy-af5a3fc361b3870fb413aaad9df1dac13f39d8ac.tar.gz
MAINT: separate multiple imports in multiple lines
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/ccompiler_opt.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/numpy/distutils/ccompiler_opt.py b/numpy/distutils/ccompiler_opt.py
index 88e4870d4..9fce05c9e 100644
--- a/numpy/distutils/ccompiler_opt.py
+++ b/numpy/distutils/ccompiler_opt.py
@@ -8,7 +8,14 @@ the sources with proper compiler's flags.
instead only focuses on the compiler side, but it creates abstract C headers
that can be used later for the final runtime dispatching process."""
-import os, re, textwrap, pprint, inspect, atexit, subprocess
+import atexit
+import inspect
+import os
+import pprint
+import re
+import subprocess
+import textwrap
+
class _Config:
"""An abstract class holds all configurable attributes of `CCompilerOpt`,
@@ -516,7 +523,8 @@ class _Config:
def __init__(self):
if self.conf_tmp_path is None:
- import tempfile, shutil
+ import shutil
+ import tempfile
tmp = tempfile.mkdtemp()
def rm_temp():
try: