summaryrefslogtreecommitdiff
path: root/Lib/packaging/depgraph.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/packaging/depgraph.py')
-rw-r--r--Lib/packaging/depgraph.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/packaging/depgraph.py b/Lib/packaging/depgraph.py
index 843aab47b0..d633b636ad 100644
--- a/Lib/packaging/depgraph.py
+++ b/Lib/packaging/depgraph.py
@@ -224,6 +224,7 @@ def dependent_dists(dists, dist):
def main():
+ # XXX move to run._graph
from packaging.database import get_distributions
tempout = StringIO()
try:
@@ -267,7 +268,3 @@ def main():
else:
print('Supported option: -d [filename]')
sys.exit(1)
-
-
-if __name__ == '__main__':
- main()