From: Mike Frysinger Date: Tue, 25 Aug 2020 07:17:09 +0000 (-0400) Subject: test.py: import more stdlib modules X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=823f4246b31a04e521db008d4fa13a59c68b97ca;p=home.git test.py: import more stdlib modules --- diff --git a/test.py b/test.py index e643615..9edf5dd 100755 --- a/test.py +++ b/test.py @@ -8,28 +8,36 @@ from __future__ import division from __future__ import print_function # pylint: disable=unused-import -import argparse -import atexit -import codecs +import abc, argparse, atexit +import base64, binascii +import codecs, collections, contextlib import datetime import errno -import fileinput -import fnmatch +import fcntl, fileinput, fnmatch import glob -import io +import hashlib +import inspect, io, itertools +import json +import logging import multiprocessing import os +import pprint import re -import signal -import subprocess -import sys -import time +import shlex, shutil, signal, socket, struct, subprocess, sys +import tarfile, tempfile, time, traceback import unittest -try: - from unittest import mock -except ImportError: +if sys.version_info.major < 3: import mock +else: + import pathlib + from pathlib import Path + import typing + from typing import ( + Any, Callable, Dict, Generator, Iterable, Iterator, List, NamedTuple, + Optional, Set, Tuple, Union, + ) + from unittest import mock import requests import six