Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/twisted_8_1/twisted/scripts/twistd.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # -*- test-case-name: twisted.test.test_twistd -*-
2 # Copyright (c) 2001-2008 Twisted Matrix Laboratories.
3 # See LICENSE for details.
4
5 """
6 The Twisted Daemon: platform-independent interface.
7
8 @author: U{Christopher Armstrong<mailto:radix@twistedmatrix.com>}
9 """
10
11 from twisted.application import app
12
13 from twisted.python.runtime import platformType
14 if platformType == "win32":
15 from twisted.scripts._twistw import ServerOptions, \
16 WindowsApplicationRunner as _SomeApplicationRunner
17 else:
18 from twisted.scripts._twistd_unix import ServerOptions, \
19 UnixApplicationRunner as _SomeApplicationRunner
20
21
22 def runApp(config):
23 _SomeApplicationRunner(config).run()
24
25
26 def run():
27 app.run(runApp, ServerOptions)
28
29
30 __all__ = ['run', 'runApp']
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/scripts/trial.py ('k') | third_party/twisted_8_1/twisted/spread/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698