]> git.wh0rd.org Git - home.git/commitdiff
test.py: update imports and formalize Python 3 only
authorMike Frysinger <vapier@gentoo.org>
Wed, 4 May 2022 19:14:33 +0000 (15:14 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 4 May 2022 19:14:33 +0000 (15:14 -0400)
test.py

diff --git a/test.py b/test.py
index 048752f0cf0ece6d67b0a1edf45bdb7cacb29547..6fa654d7fbf81d0c11cbd6ccc5cba60433da2b77 100755 (executable)
--- a/test.py
+++ b/test.py
@@ -3,8 +3,6 @@
 """Test module for quick hacking."""
 
 from __future__ import absolute_import
-from __future__ import division
-from __future__ import print_function
 
 # pylint: disable=unused-import
 import abc, argparse, atexit
@@ -22,17 +20,13 @@ import multiprocessing
 import os
 import pathlib, pprint
 from pathlib import Path
-import re
+import re, resource
 import shlex, shutil, signal, socket, struct, subprocess, sys
 import tarfile, tempfile, time, traceback, typing
-from typing import (
-    Any, Callable, Dict, Generator, Iterable, Iterator, List, NamedTuple,
-    Optional, Set, Tuple, Union,
-)
+from typing import *
 import unittest
 from unittest import mock
 
-
 try:
     import requests
 except ImportError: