-#!/usr/bin/python
-# -*- coding: utf-8 -*-
+#!/usr/bin/env python3
"""Test module for quick hacking."""
# pylint: disable=unused-import
import abc, argparse, atexit
import base64, binascii
-import codecs, collections, contextlib
+import codecs, collections, configparser, contextlib
import datetime
import errno
import fcntl, fileinput, fnmatch
import logging
import multiprocessing
import os
-import pprint
+import pathlib, pprint
+from pathlib import Path
import re
import shlex, shutil, signal, socket, struct, subprocess, sys
-import tarfile, tempfile, time, traceback
+import tarfile, tempfile, time, traceback, typing
+from typing import (
+ Any, Callable, Dict, Generator, Iterable, Iterator, List, NamedTuple,
+ Optional, Set, Tuple, Union,
+)
import unittest
+from unittest import mock
-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
+
+try:
+ import requests
+except ImportError:
+ pass
import six