mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Python 3 support and minor fixes.
This commit is contained in:
parent
4a0d3936e8
commit
4ee09cf817
11 changed files with 66 additions and 70 deletions
|
@ -30,13 +30,10 @@ Radicale Server entry point.
|
|||
Launch the Radicale Serve according to the configuration.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import BaseHTTPServer
|
||||
|
||||
import radicale
|
||||
|
||||
if radicale.config.get("server", "type") == "http":
|
||||
server = BaseHTTPServer.HTTPServer(
|
||||
server = radicale.server.HTTPServer(
|
||||
("", radicale.config.getint("server", "port")),
|
||||
radicale.CalendarHandler)
|
||||
server.serve_forever()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue