]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Remove unnecessary shebang lines (#189)
authorChristian Heimes <christian@python.org>
Fri, 4 May 2018 20:52:17 +0000 (22:52 +0200)
committerŁukasz Langa <lukasz@langa.pl>
Fri, 4 May 2018 20:52:17 +0000 (13:52 -0700)
Since black.py is not marked as executable, the shebang in black.py serves
no purpose. black should be invoked through its entry point any way.

token.py is an internal module without a __name__ == '__main__' block or
other executable code. It contains just list of constants and small
helper functions.

Signed-off-by: Christian Heimes <christian@python.org>
black.py
blib2to3/pgen2/token.py [changed mode: 0755->0644]

index 5e087d164e4da95b1bad894d64b9b12a5b169748..fdefb746de14fc28002c820e2a19454db5873298 100644 (file)
--- a/black.py
+++ b/black.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 import asyncio
 import pickle
 from asyncio.base_events import BaseEventLoop
 import asyncio
 import pickle
 from asyncio.base_events import BaseEventLoop
old mode 100755 (executable)
new mode 100644 (file)
index 1a67955..c37b0d5
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
 """Token constants (from "token.h")."""
 
 #  Taken from Python (r53757) and modified to include some tokens
 """Token constants (from "token.h")."""
 
 #  Taken from Python (r53757) and modified to include some tokens