init
This commit is contained in:
commit
72672d6709
32 changed files with 1651 additions and 0 deletions
17
tmp.py
Normal file
17
tmp.py
Normal 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)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue