Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: multiplexer.py

Issue 29345120: Noissue - Got rid of non-default script encodings (Closed)
Patch Set: Created May 28, 2016, 11:32 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « multiplexer.fcgi ('k') | sitescripts/__init__.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « multiplexer.fcgi ('k') | sitescripts/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld