# This checks that we can import the right versions of all dependencies. # Import this first to suppress deprecation warnings. import allmydata from decimal import Decimal from xml.dom import minidom import allmydata.web # 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()
""" Ported to Python 3. """ from __future__ import unicode_literals from __future__ import absolute_import from __future__ import division from __future__ import print_function from future.utils import PY2 if PY2: from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401 import sys from allmydata.scripts.runner import run if __name__ == "__main__": sys.exit(run())
# This checks that we can import the right versions of all dependencies. # 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 import mock # 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, mock, ] from allmydata.scripts import runner runner.run()
import sys from allmydata.scripts.runner import run if __name__ == "__main__": sys.exit(run())