Skip to content

Commit

Permalink
Remove Nevow from the static script
Browse files Browse the repository at this point in the history
  • Loading branch information
exarkun committed Oct 21, 2020
1 parent 14b9dc0 commit 9b8b7a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Empty file added newsfragments/3434.minor
Empty file.
20 changes: 8 additions & 12 deletions static/tahoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,19 @@
# Import this first to suppress deprecation warnings.
import allmydata

# nevow requires all these for its voodoo module import time adaptor registrations
from nevow import accessors, appserver, static, rend, url, util, query, i18n, flat
from nevow import guard, stan, testutil, context
from nevow.flat import flatmdom, flatstan, twist
from formless import webform, processors, annotate, iformless
from decimal import Decimal
from xml.dom import minidom

import allmydata.web

# junk to appease pyflakes's outrage
[
accessors, appserver, static, rend, url, util, query, i18n, flat, guard, stan, testutil,
context, flatmdom, flatstan, twist, webform, processors, annotate, iformless, Decimal,
minidom, allmydata,
]
# We import these things to give PyInstaller's dependency resolver some hints
# about what it needs to include. We don't use them otherwise _here_ but
# other parts of the codebase do. pyflakes points out that they are unused
# unless we use them. So ... use them.
Decimal
minidom
allmydata

from allmydata.scripts import runner

runner.run()
runner.run()

0 comments on commit 9b8b7a5

Please sign in to comment.