This commit is contained in:
Waylon Walker 2023-03-13 09:42:39 -05:00
commit 72672d6709
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
32 changed files with 1651 additions and 0 deletions

17
tmp.py Normal file
View file

@ -0,0 +1,17 @@
from pathlib import Path
statements = """
from __future__ import (absolute_import,
division)
import os
import collections, itertools
from math import *
from gzip import open as gzip_open
from subprocess import check_output, Popen
"""
imports = more_itertools.flatten(
[get_imports(p.read_text()) for p in Path(".").glob("**/*.py")]
)
print("\n".join(set(imports)))