From 4a7e77141eeff7981f5b449d93f8d73dcade8a0e Mon Sep 17 00:00:00 2001 From: louistiti Date: Wed, 24 May 2023 20:32:43 +0800 Subject: [PATCH] refactor: remove Python shebangs --- bridges/python/src/main_legacy.py | 3 --- bridges/python/src/utils.py | 3 --- bridges/python/src/vars.py | 3 --- skills/games/akinator/src/actions/guess.py | 3 --- skills/games/akinator/src/actions/retry.py | 3 --- skills/games/akinator/src/actions/setup.py | 3 --- skills/games/guess_the_number/src/actions/guess.py | 3 --- skills/games/guess_the_number/src/actions/replay.py | 3 --- skills/games/guess_the_number/src/actions/setup.py | 3 --- skills/games/rochambeau/src/actions/play.py | 3 --- skills/games/rochambeau/src/actions/rematch.py | 3 --- skills/leon/greeting/src/actions/run.py | 3 --- skills/leon/introduction/src/actions/introduce_leon.py | 3 --- skills/leon/introduction/src/actions/remember.py | 3 --- skills/leon/random_number/src/actions/run.py | 3 --- skills/news/github_trends/src/actions/run.py | 3 --- skills/news/github_trends/src/lib/github_lang.py | 3 --- skills/news/product_hunt_trends/src/actions/run.py | 3 --- skills/productivity/todo_list/src/actions/add_todos.py | 3 --- skills/productivity/todo_list/src/actions/complete_todos.py | 3 --- skills/productivity/todo_list/src/actions/create_list.py | 3 --- skills/productivity/todo_list/src/actions/delete_list.py | 3 --- skills/productivity/todo_list/src/actions/rename_list.py | 3 --- skills/productivity/todo_list/src/actions/uncheck_todos.py | 3 --- skills/productivity/todo_list/src/actions/view_list.py | 3 --- skills/productivity/todo_list/src/actions/view_lists.py | 3 --- skills/social_communication/mbti/src/actions/quiz.py | 3 --- skills/social_communication/mbti/src/actions/setup.py | 3 --- skills/utilities/have_i_been_pwned/src/actions/run.py | 3 --- skills/utilities/is_it_down/src/actions/run.py | 3 --- skills/utilities/speed_test/src/actions/run.py | 3 --- skills/utilities/youtube_downloader/src/actions/run.py | 3 --- tcp_server/src/lib/TCPServer.py | 3 --- tcp_server/src/lib/nlp.py | 3 --- tcp_server/src/main.py | 3 --- 35 files changed, 105 deletions(-) diff --git a/bridges/python/src/main_legacy.py b/bridges/python/src/main_legacy.py index d2741346..fa848029 100644 --- a/bridges/python/src/main_legacy.py +++ b/bridges/python/src/main_legacy.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils from traceback import print_exc from sys import path diff --git a/bridges/python/src/utils.py b/bridges/python/src/utils.py index bd2e068a..8abff690 100644 --- a/bridges/python/src/utils.py +++ b/bridges/python/src/utils.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from json import loads, dumps from pathlib import Path from random import choice diff --git a/bridges/python/src/vars.py b/bridges/python/src/vars.py index a7f612a6..b1cee0c8 100644 --- a/bridges/python/src/vars.py +++ b/bridges/python/src/vars.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import sys import os from json import loads diff --git a/skills/games/akinator/src/actions/guess.py b/skills/games/akinator/src/actions/guess.py index fb758c12..ef4d2153 100644 --- a/skills/games/akinator/src/actions/guess.py +++ b/skills/games/akinator/src/actions/guess.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils from ..lib import akinator, db diff --git a/skills/games/akinator/src/actions/retry.py b/skills/games/akinator/src/actions/retry.py index 9d6b4466..5387e6c6 100644 --- a/skills/games/akinator/src/actions/retry.py +++ b/skills/games/akinator/src/actions/retry.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils diff --git a/skills/games/akinator/src/actions/setup.py b/skills/games/akinator/src/actions/setup.py index 5292cc91..6ea5df90 100644 --- a/skills/games/akinator/src/actions/setup.py +++ b/skills/games/akinator/src/actions/setup.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils from ..lib import akinator, db diff --git a/skills/games/guess_the_number/src/actions/guess.py b/skills/games/guess_the_number/src/actions/guess.py index 9fd619ea..84494abd 100644 --- a/skills/games/guess_the_number/src/actions/guess.py +++ b/skills/games/guess_the_number/src/actions/guess.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils from ..lib import db diff --git a/skills/games/guess_the_number/src/actions/replay.py b/skills/games/guess_the_number/src/actions/replay.py index a761f0b8..a30bfa49 100644 --- a/skills/games/guess_the_number/src/actions/replay.py +++ b/skills/games/guess_the_number/src/actions/replay.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils diff --git a/skills/games/guess_the_number/src/actions/setup.py b/skills/games/guess_the_number/src/actions/setup.py index 818719db..b2573a80 100644 --- a/skills/games/guess_the_number/src/actions/setup.py +++ b/skills/games/guess_the_number/src/actions/setup.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from random import randint import utils diff --git a/skills/games/rochambeau/src/actions/play.py b/skills/games/rochambeau/src/actions/play.py index 364ce7d1..6728b47a 100644 --- a/skills/games/rochambeau/src/actions/play.py +++ b/skills/games/rochambeau/src/actions/play.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import random import utils diff --git a/skills/games/rochambeau/src/actions/rematch.py b/skills/games/rochambeau/src/actions/rematch.py index 861d3379..6e78a3b4 100644 --- a/skills/games/rochambeau/src/actions/rematch.py +++ b/skills/games/rochambeau/src/actions/rematch.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils diff --git a/skills/leon/greeting/src/actions/run.py b/skills/leon/greeting/src/actions/run.py index fe352827..49a64941 100644 --- a/skills/leon/greeting/src/actions/run.py +++ b/skills/leon/greeting/src/actions/run.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from datetime import datetime from random import randint diff --git a/skills/leon/introduction/src/actions/introduce_leon.py b/skills/leon/introduction/src/actions/introduce_leon.py index 82b878da..4a5bb7ac 100644 --- a/skills/leon/introduction/src/actions/introduce_leon.py +++ b/skills/leon/introduction/src/actions/introduce_leon.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils from ..lib import db diff --git a/skills/leon/introduction/src/actions/remember.py b/skills/leon/introduction/src/actions/remember.py index 705ae27e..f954368f 100644 --- a/skills/leon/introduction/src/actions/remember.py +++ b/skills/leon/introduction/src/actions/remember.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils from ..lib import db diff --git a/skills/leon/random_number/src/actions/run.py b/skills/leon/random_number/src/actions/run.py index 7ad0cc71..7e156212 100644 --- a/skills/leon/random_number/src/actions/run.py +++ b/skills/leon/random_number/src/actions/run.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils from random import randint diff --git a/skills/news/github_trends/src/actions/run.py b/skills/news/github_trends/src/actions/run.py index 0797ea67..3bc3246b 100644 --- a/skills/news/github_trends/src/actions/run.py +++ b/skills/news/github_trends/src/actions/run.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import requests import utils from ..lib import github_lang diff --git a/skills/news/github_trends/src/lib/github_lang.py b/skills/news/github_trends/src/lib/github_lang.py index 41e43923..5bc53bae 100644 --- a/skills/news/github_trends/src/lib/github_lang.py +++ b/skills/news/github_trends/src/lib/github_lang.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - def get_all(): return [ '1C Enterprise', diff --git a/skills/news/product_hunt_trends/src/actions/run.py b/skills/news/product_hunt_trends/src/actions/run.py index 841262e2..94212eaf 100644 --- a/skills/news/product_hunt_trends/src/actions/run.py +++ b/skills/news/product_hunt_trends/src/actions/run.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import requests import utils diff --git a/skills/productivity/todo_list/src/actions/add_todos.py b/skills/productivity/todo_list/src/actions/add_todos.py index 41c941eb..277d2fc2 100644 --- a/skills/productivity/todo_list/src/actions/add_todos.py +++ b/skills/productivity/todo_list/src/actions/add_todos.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from time import time import utils diff --git a/skills/productivity/todo_list/src/actions/complete_todos.py b/skills/productivity/todo_list/src/actions/complete_todos.py index a73f9b04..086257aa 100644 --- a/skills/productivity/todo_list/src/actions/complete_todos.py +++ b/skills/productivity/todo_list/src/actions/complete_todos.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from time import time import utils diff --git a/skills/productivity/todo_list/src/actions/create_list.py b/skills/productivity/todo_list/src/actions/create_list.py index 74055ea6..df22c440 100644 --- a/skills/productivity/todo_list/src/actions/create_list.py +++ b/skills/productivity/todo_list/src/actions/create_list.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from time import time import utils diff --git a/skills/productivity/todo_list/src/actions/delete_list.py b/skills/productivity/todo_list/src/actions/delete_list.py index 660122da..89e6b902 100644 --- a/skills/productivity/todo_list/src/actions/delete_list.py +++ b/skills/productivity/todo_list/src/actions/delete_list.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from time import time import utils diff --git a/skills/productivity/todo_list/src/actions/rename_list.py b/skills/productivity/todo_list/src/actions/rename_list.py index 8f7a4762..7f9ecca5 100644 --- a/skills/productivity/todo_list/src/actions/rename_list.py +++ b/skills/productivity/todo_list/src/actions/rename_list.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from time import time import utils diff --git a/skills/productivity/todo_list/src/actions/uncheck_todos.py b/skills/productivity/todo_list/src/actions/uncheck_todos.py index b078f308..c3eba83d 100644 --- a/skills/productivity/todo_list/src/actions/uncheck_todos.py +++ b/skills/productivity/todo_list/src/actions/uncheck_todos.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from time import time import utils diff --git a/skills/productivity/todo_list/src/actions/view_list.py b/skills/productivity/todo_list/src/actions/view_list.py index 739f9861..7baf3e73 100644 --- a/skills/productivity/todo_list/src/actions/view_list.py +++ b/skills/productivity/todo_list/src/actions/view_list.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from time import time import utils diff --git a/skills/productivity/todo_list/src/actions/view_lists.py b/skills/productivity/todo_list/src/actions/view_lists.py index 66cd403d..e961eaee 100644 --- a/skills/productivity/todo_list/src/actions/view_lists.py +++ b/skills/productivity/todo_list/src/actions/view_lists.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from time import time import utils diff --git a/skills/social_communication/mbti/src/actions/quiz.py b/skills/social_communication/mbti/src/actions/quiz.py index 61b6e340..6b554f71 100644 --- a/skills/social_communication/mbti/src/actions/quiz.py +++ b/skills/social_communication/mbti/src/actions/quiz.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - # Questions are taken from: http://www.lrjj.cn/encrm1.0/public/upload/MBTI-personality-test.pdf import utils diff --git a/skills/social_communication/mbti/src/actions/setup.py b/skills/social_communication/mbti/src/actions/setup.py index e87d702b..acbb8a69 100644 --- a/skills/social_communication/mbti/src/actions/setup.py +++ b/skills/social_communication/mbti/src/actions/setup.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils from ..lib import db diff --git a/skills/utilities/have_i_been_pwned/src/actions/run.py b/skills/utilities/have_i_been_pwned/src/actions/run.py index 633e8a2e..84445a30 100644 --- a/skills/utilities/have_i_been_pwned/src/actions/run.py +++ b/skills/utilities/have_i_been_pwned/src/actions/run.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import utils from time import sleep from urllib import parse diff --git a/skills/utilities/is_it_down/src/actions/run.py b/skills/utilities/is_it_down/src/actions/run.py index c8636a6b..87ac484f 100644 --- a/skills/utilities/is_it_down/src/actions/run.py +++ b/skills/utilities/is_it_down/src/actions/run.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import requests import utils diff --git a/skills/utilities/speed_test/src/actions/run.py b/skills/utilities/speed_test/src/actions/run.py index 4d207488..b095b82a 100644 --- a/skills/utilities/speed_test/src/actions/run.py +++ b/skills/utilities/speed_test/src/actions/run.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - # Give you information about your network speed # Author: Florian Bouché # Date: 2019-03-09 diff --git a/skills/utilities/youtube_downloader/src/actions/run.py b/skills/utilities/youtube_downloader/src/actions/run.py index 905b1c33..21f99e9a 100644 --- a/skills/utilities/youtube_downloader/src/actions/run.py +++ b/skills/utilities/youtube_downloader/src/actions/run.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import requests import os import utils diff --git a/tcp_server/src/lib/TCPServer.py b/tcp_server/src/lib/TCPServer.py index eb1b0514..45103267 100644 --- a/tcp_server/src/lib/TCPServer.py +++ b/tcp_server/src/lib/TCPServer.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import socket import json diff --git a/tcp_server/src/lib/nlp.py b/tcp_server/src/lib/nlp.py index 4e88c5a9..de981155 100644 --- a/tcp_server/src/lib/nlp.py +++ b/tcp_server/src/lib/nlp.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from sys import argv import spacy import geonamescache diff --git a/tcp_server/src/main.py b/tcp_server/src/main.py index 9380a06a..009374f4 100644 --- a/tcp_server/src/main.py +++ b/tcp_server/src/main.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - import os from os.path import join, dirname from dotenv import load_dotenv