| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # coding: utf-8 | |
| 3 | 2 |
| 4 # This file is part of the Adblock Plus web scripts, | 3 # This file is part of the Adblock Plus web scripts, |
| 5 # Copyright (C) 2006-2016 Eyeo GmbH | 4 # Copyright (C) 2006-2016 Eyeo GmbH |
| 6 # | 5 # |
| 7 # Adblock Plus is free software: you can redistribute it and/or modify | 6 # Adblock Plus is free software: you can redistribute it and/or modify |
| 8 # it under the terms of the GNU General Public License version 3 as | 7 # it under the terms of the GNU General Public License version 3 as |
| 9 # published by the Free Software Foundation. | 8 # published by the Free Software Foundation. |
| 10 # | 9 # |
| 11 # Adblock Plus is distributed in the hope that it will be useful, | 10 # Adblock Plus is distributed in the hope that it will be useful, |
| 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 10 matching lines...) Expand all Loading... |
| 23 except ImportError: | 22 except ImportError: |
| 24 from wsgiref.simple_server import make_server | 23 from wsgiref.simple_server import make_server |
| 25 | 24 |
| 26 def run_simple(host, port, app, **kwargs): | 25 def run_simple(host, port, app, **kwargs): |
| 27 server = make_server(host, port, app) | 26 server = make_server(host, port, app) |
| 28 print " * Running on http://%s:%i/" % server.server_address | 27 print " * Running on http://%s:%i/" % server.server_address |
| 29 server.serve_forever() | 28 server.serve_forever() |
| 30 | 29 |
| 31 if __name__ == "__main__": | 30 if __name__ == "__main__": |
| 32 run_simple("localhost", 5000, multiplex, use_reloader=True, use_debugger=Tru
e) | 31 run_simple("localhost", 5000, multiplex, use_reloader=True, use_debugger=Tru
e) |
| OLD | NEW |