]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
make executable bit and shebang consistent on various source files
authorJehiah Czebotar <jehiah@gmail.com>
Tue, 30 May 2017 13:19:27 +0000 (09:19 -0400)
committerPierce Lopez <pierce.lopez@gmail.com>
Sun, 7 Jan 2018 01:35:44 +0000 (20:35 -0500)
setup.py is intended to be run with "python setup.py install"

sources in the tornado module which have main functions/clauses
are intended to be run with "python -m tornado.xxx"

various demos and scripts can be run directly

60 files changed:
demos/appengine/blog.py
demos/benchmark/gen_benchmark.py [changed mode: 0644->0755]
demos/file_upload/file_receiver.py [changed mode: 0644->0755]
demos/s3server/s3server.py
demos/tcpecho/client.py [changed mode: 0644->0755]
demos/tcpecho/server.py [changed mode: 0644->0755]
demos/twitter/twitterdemo.py [changed mode: 0644->0755]
demos/webspider/webspider.py [changed mode: 0644->0755]
maint/circlerefs/circlerefs.py [changed mode: 0644->0755]
maint/scripts/test_resolvers.py [changed mode: 0644->0755]
maint/test/appengine/common/cgi_runtests.py [changed mode: 0644->0755]
maint/test/appengine/common/runtests.py [changed mode: 0644->0755]
maint/test/redbot/red_test.py [changed mode: 0644->0755]
maint/test/websocket/client.py
maint/test/websocket/server.py
maint/vm/windows/bootstrap.py [changed mode: 0644->0755]
setup.py
tornado/__init__.py
tornado/_locale_data.py
tornado/auth.py
tornado/autoreload.py
tornado/concurrent.py
tornado/curl_httpclient.py
tornado/escape.py
tornado/http1connection.py
tornado/httpserver.py
tornado/httputil.py [changed mode: 0755->0644]
tornado/ioloop.py
tornado/iostream.py
tornado/locale.py
tornado/log.py
tornado/netutil.py
tornado/options.py
tornado/platform/auto.py
tornado/platform/epoll.py
tornado/platform/interface.py
tornado/platform/kqueue.py
tornado/platform/posix.py
tornado/platform/select.py
tornado/process.py
tornado/simple_httpclient.py
tornado/stack_context.py
tornado/tcpclient.py
tornado/tcpserver.py
tornado/template.py
tornado/test/concurrent_test.py
tornado/test/escape_test.py
tornado/test/httpclient_test.py
tornado/test/httpserver_test.py
tornado/test/httputil_test.py
tornado/test/ioloop_test.py
tornado/test/log_test.py
tornado/test/process_test.py
tornado/test/runtests.py
tornado/test/stack_context_test.py
tornado/test/tcpclient_test.py
tornado/test/testing_test.py
tornado/testing.py
tornado/web.py
tornado/wsgi.py

index 5ac4061d6c187338bfc11384eb5f94b5ea3572cf..e2b2ef50423c38ce6f79e10892c342230e267d7a 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index f3051a1d3d1b7362776296588babb457eb6d7fef..c01f06c4694833f34df593076c5084010eadb2b3 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
old mode 100644 (file)
new mode 100755 (executable)
index a369fa4..51d3a8d
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
 from __future__ import print_function
 from tornado.ioloop import IOLoop
 from tornado import gen
old mode 100644 (file)
new mode 100755 (executable)
index bc0b054..ebe683c
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
 import logging
 from tornado.ioloop import IOLoop
 from tornado import gen
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index d1b1aaf56a4b519dabc1141cc94ea6effb3455fa..03aed18162eabf622ac3c53d3ca1a873bd1118a3 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 import logging
 
 from tornado import gen
index c237afc78963cf68ef3fa060a6ca1f6081b5c2ab..2b71adda253ca5c31242f34b9d1bf0971a501ab3 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 from tornado.ioloop import IOLoop
 from tornado.options import define, options, parse_command_line
 from tornado.websocket import WebSocketHandler
old mode 100644 (file)
new mode 100755 (executable)
index e9f4f7d..281bf57
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
 r"""Installs files needed for tornado testing on windows.
 
 These instructions are compatible with the VMs provided by http://modern.ie.
index 7cea09991f1c84a759aeefac84db11400021f55f..6da90103f17e68136121e1c3fdfd9afaa31b6435 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index c55e9cb0527ce1ff8af302bfe36fc36627fe5cdf..3bd16d99e54f8f94a8b604edf3bede25be1b3e6e 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index 6fa2c29742af692196e9edd5ad953ef95acc462b..a2c503907d4324f00acbe0afead1436189533d44 100644 (file)
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# coding: utf-8
+# -*- coding: utf-8 -*-
 #
 # Copyright 2012 Facebook
 #
index b8d373a581e88acf3da057ebc52cdb50474c99a1..8462548fec60c9082d92a46e1e741fcb193c2282 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index 64204455e925e7ba8d910b8bad524a62d2d586f5..2f91127031480b734bac3a03164911606af7ce8d 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index dd0d46593e20f2f84db6e1924113899176f83cc6..cca6468c4110bf20804a47c8b18fc87290614fd7 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2012 Facebook
 #
index e0ec3fbaf88be76a29c15f3c7e6e9c8aa806af62..1523fdcba67b34febb2b5b2ca1b8208919786fc4 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index 7fa6853bb3ef5bc08dfdfdea0e23837a20459331..f9699634e475a5578575381fea62fa13c615893b 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index 4d20593a5a1b0757ddfc46019678b0f335512c0f..ed906223a3f6788820e65f0516dcf81c18b0588c 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2014 Facebook
 #
index da755f846f04cda570898419a7997392542d2e89..3498d71fb6c08814a2536027021b5853c4348fe7 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
old mode 100755 (executable)
new mode 100644 (file)
index 1799de5..ceff735
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index b28eb46fe82c070607e41514c8816933c06cea4a..138a61b5c2984d68432f03c71d8709dd0918c8ca 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index fb89da089d0098e6ca626b8645d23b26fa1b6683..d77460320545c4f692d8f850010f8ea6284a9111 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index 7dba10d616c3a3440b1b14b77290536b99a41fa7..d45172f3b879ebb0b2e9ed3bf8d09b74f3a2c98a 100644 (file)
@@ -1,5 +1,5 @@
-#!/usr/bin/env python
 # -*- coding: utf-8 -*-
+#
 # Copyright 2009 Facebook
 #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may
index fc95a5f98b19150e07dc4bda77fe45f162dc76ab..3074b637157d70f050a27a4757337a3b1dfcf967 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2012 Facebook
 #
index 5f52e2dea4a8a53a521761442e7460bd974747ff..2d55ccf19c21bf09b7677909dca66b570f75c7b0 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2011 Facebook
 #
index 9635f7580dd51c510d9a0c508aa9fc0dc8e63635..a6f77029f75030c260a9dda8d9e575a7a804f0b9 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index 1f4d7001939cc8b227a5c8c5cbf877eaac622d24..1a9133faf34eeb281d707a734debe203323a1df8 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2011 Facebook
 #
index 80bfd8af4c69a51425f8c34d1c24f0893c30796a..4e34617406e99de1edf7be21270bcd48fd60319c 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2012 Facebook
 #
index c0ef2905c3d30ab604e8e3f62153d1f3d035edb2..cac532646551c84d6a2ae6acbe65c89153c63e96 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2011 Facebook
 #
index 3a5d417429d3b958860ae0c1d6616804b7b0efe0..4e0aee02eeaf6966c90e0cda9c8dedc74b80c6ad 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2012 Facebook
 #
index 9bf1f18868ca70f8016cc4f6667d71aa961d5bc2..6fe1fa8372241a3e14feb2ed0c453ee605d09376 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2011 Facebook
 #
index a18049f7cdab0a56bbc327ce67c52bf13bd637fe..14e8a4745c53e858668f009e2814fdd1eef7d3a2 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2012 Facebook
 #
index 6da398497d9156af9126308a621001dd3719e3b2..fcf66225978e62b3e5eae365069399a08b414175 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2011 Facebook
 #
index 6d90352f1a80673a3ced0cd1159fb6b0cc0cd251..3c192fcd4ad7681dc0acd43bdf4c5b70fa9a868d 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 from __future__ import absolute_import, division, print_function
 
 from tornado.escape import utf8, _unicode
index 61ae51f4eb10641d2bcb43afeacc11cd316e3321..2f26f3845f1c09383a841d0def1c5e9c3212d9f9 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2010 Facebook
 #
index 5496439852b15da7fed67b88859a5c92c2fd939b..3a1b58ca8601a6bef37b2975878e855378fd50ea 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2014 Facebook
 #
index 53cd26af409c45c7c904c48d85d1692cdb36603b..1adc489560dcf1b5400cf8289e54d82eb357453e 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2011 Facebook
 #
index 0818178dca7820b645bb77ebf699cded70765fe5..61b987462cc7c1799234671704f56abd9c52027f 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index bbefb1c6175c7da087617543f575e10d42b8e30d..3c7d435fc8a5a43a9a9b5249d1e2f1e955fec5d6 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2012 Facebook
 #
index 70aa4bdd6ac80693f801fc49bf3a2d04c22f44f7..f2f2902a0ad439684f3a0ec087321c40d6ed944f 100644 (file)
@@ -1,9 +1,6 @@
-#!/usr/bin/env python
-
-
 from __future__ import absolute_import, division, print_function
-import tornado.escape
 
+import tornado.escape
 from tornado.escape import (
     utf8, xhtml_escape, xhtml_unescape, url_escape, url_unescape,
     to_unicode, json_decode, json_encode, squeeze, recursive_unicode,
index 140bc3101b78ef901883922563fab6e6cbb603be..f04b9b12cabb421b2ca0ddc861d0d1ec7f649f2e 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 from __future__ import absolute_import, division, print_function
 
 import base64
index aa9d831d712d7087fb037ffb6ab5fcb3f3cc3ee2..825fa642ff1a8aaadbc9768524d842a60d65daab 100644 (file)
@@ -1,6 +1,3 @@
-#!/usr/bin/env python
-
-
 from __future__ import absolute_import, division, print_function
 
 from tornado import netutil
index 8abb07a93cc2b1347b81287f422ad3372befc9cb..5c064ddea42b49449612cf2a1bea5729b6e52702 100644 (file)
@@ -1,7 +1,4 @@
-#!/usr/bin/env python
 # -*- coding: utf-8 -*-
-
-
 from __future__ import absolute_import, division, print_function
 
 from tornado.httputil import (
index d5cbebd008ecdbdae274bf74ebe7b36b1040ef62..b761a3f54a0918bd60a149b84a3b9c031e38cad6 100644 (file)
@@ -1,7 +1,5 @@
-#!/usr/bin/env python
-
-
 from __future__ import absolute_import, division, print_function
+
 import contextlib
 import datetime
 import functools
index 0565d5668598c1bd7641efb3b7c6dd4d3f11cc52..48519c3c3c9577cffcfd4cb73b2477dba016f938 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2012 Facebook
 #
index 8497a7d8f37e1662d9f3441d6e72d7c1cf14e766..c9694f03ffa7673f57fec7f5a79b09a86a3965b1 100644 (file)
@@ -1,12 +1,11 @@
-#!/usr/bin/env python
-
-
 from __future__ import absolute_import, division, print_function
+
 import logging
 import os
 import signal
 import subprocess
 import sys
+
 from tornado.httpclient import HTTPClient, HTTPError
 from tornado.httpserver import HTTPServer
 from tornado.ioloop import IOLoop
index 9699f5133c489fc6868ce326bda8bed0cfd7956f..1dcc5eec77b92e0a2a873cc626a04089e58083a7 100644 (file)
@@ -1,12 +1,12 @@
-#!/usr/bin/env python
-
 from __future__ import absolute_import, division, print_function
+
 import gc
 import locale  # system locale module, not tornado.locale
 import logging
 import operator
 import textwrap
 import sys
+
 from tornado.httpclient import AsyncHTTPClient
 from tornado.httpserver import HTTPServer
 from tornado.ioloop import IOLoop
index fb9e0d7ac48b1842702f5fc584627efd12829534..098f0f0f0cd6fa071cfc00830cbb61a1ef68c82e 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 from __future__ import absolute_import, division, print_function
 
 from tornado import gen
index faaaf96e78e19c6a95e0164a0171af8bc4bb2b32..ca42cf47ea71c7c797633b97eb92a94d92d944c4 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2014 Facebook
 #
index 21ae7833d577da8bae63b26a48ca096c33e99352..049bc8bbd7b154cb1d595e457321ae30f122f24d 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 from __future__ import absolute_import, division, print_function
 
 from tornado import gen, ioloop
index 21d4d88752ee6352fb0232aedb0fb2691ccec1e9..5d6d6197dba47341695a738e4dec9f0907329a54 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 """Support classes for automated testing.
 
 * `AsyncTestCase` and `AsyncHTTPTestCase`:  Subclasses of unittest.TestCase
index 91d9abd1c7cea75019d8c298894a7ce96a89ac3e..5fa3abd8b5e6d5d2fbd4dcdf3d98723309fca1be 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #
index 68a7615a0ef930a83d47f6a0bc024cd4ee36ed91..22be7a897235080ac5805bb9cf638ab4a7d9af77 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright 2009 Facebook
 #