mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 18:25:17 +01:00
...
This commit is contained in:
parent
446eb08a55
commit
8f38433a26
1 changed files with 4 additions and 3 deletions
|
|
@ -138,6 +138,10 @@ def compile_coffeescript(self, src):
|
|||
class HTTPD(SocketServer.TCPServer):
|
||||
allow_reuse_address = True
|
||||
|
||||
# }}}
|
||||
|
||||
compile_coffeescript = Compiler()
|
||||
|
||||
def serve(resources={}, port=8000):
|
||||
Handler.special_resources = resources
|
||||
httpd = HTTPD(('0.0.0.0', port), Handler)
|
||||
|
|
@ -146,9 +150,6 @@ def serve(resources={}, port=8000):
|
|||
httpd.serve_forever()
|
||||
except KeyboardInterrupt:
|
||||
raise SystemExit(0)
|
||||
# }}}
|
||||
|
||||
compile_coffeescript = Compiler()
|
||||
|
||||
def main():
|
||||
import argparse
|
||||
|
|
|
|||
Loading…
Reference in a new issue