]> 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 useless shebangs in non-executable files (#2161)
authorMiro Hrončok <miro@hroncok.cz>
Wed, 28 Apr 2021 14:07:15 +0000 (16:07 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Apr 2021 14:07:15 +0000 (07:07 -0700)
Such shebangs are only ever used if the file is executed directly, i.e.:

    $ /usr/lib/python3.9/site-packages/black_primer/cli.py

But that doesn't work:

    $ /usr/lib/python3.9/site-packages/black_primer/cli.py
    bash: /usr/lib/python3.9/site-packages/black_primer/cli.py: Permission denied

The lib file even has: "lib is a library, funnily enough"

src/black_primer/cli.py
src/black_primer/lib.py

index 5903adc72d4867553c520ed1a9e05b5101c9bda4..b2d4159b1da32f80134404c1ee70416b4338c672 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 # coding=utf8
 
 import asyncio
index 7999f6a3e3652690bbcf3cda197685b7898c68bb..ecc704f2cca2632f26109b89f61284ddd2ebc3af 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 import asyncio
 import errno
 import json