From: Mike Frysinger Date: Wed, 4 May 2022 19:14:33 +0000 (-0400) Subject: test.py: update imports and formalize Python 3 only X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1c8c9d056c3605ee49324b952315d13be2b4f723;p=home.git test.py: update imports and formalize Python 3 only --- diff --git a/test.py b/test.py index 048752f..6fa654d 100755 --- 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: