From 07d83eae429a4ea08eb71e1f3b0e9ff6addfc6d4 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sat, 19 Jan 2019 20:17:36 +0100 Subject: [PATCH] Update script shebangs to use python3 --- manage.py | 2 +- pgweb/core/management/commands/cleanup_old_records.py | 2 +- pgweb/core/management/commands/fetch_rss_feeds.py | 2 +- pgweb/core/management/commands/moderation_report.py | 2 +- pgweb/news/management/commands/twitter_post.py | 2 +- pgweb/news/management/commands/twitter_register.py | 2 +- tools/communityauth/generate_cryptkey.py | 2 +- tools/communityauth/test_auth.py | 2 +- tools/docs/docload.py | 2 +- tools/ftp/spider_ftp.py | 2 +- tools/ftp/spider_yum.py | 2 +- tools/localhtmlvalidate/localhtmlvalidate.py | 2 +- tools/purgehook/purgehook.py | 2 +- tools/search/crawler/listcrawler.py | 2 +- tools/search/crawler/listsync.py | 2 +- tools/search/crawler/webcrawler.py | 2 +- tools/varnishqueue/nagios_check.py | 2 +- tools/varnishqueue/varnish_queue.py | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/manage.py b/manage.py index 985c7e8f..519f8414 100755 --- a/manage.py +++ b/manage.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import sys diff --git a/pgweb/core/management/commands/cleanup_old_records.py b/pgweb/core/management/commands/cleanup_old_records.py index a2fb38c4..08a974bf 100644 --- a/pgweb/core/management/commands/cleanup_old_records.py +++ b/pgweb/core/management/commands/cleanup_old_records.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Script to generally cleanup old records in the database. # diff --git a/pgweb/core/management/commands/fetch_rss_feeds.py b/pgweb/core/management/commands/fetch_rss_feeds.py index afe5a65b..0ce0b147 100644 --- a/pgweb/core/management/commands/fetch_rss_feeds.py +++ b/pgweb/core/management/commands/fetch_rss_feeds.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Script to fetch content from RSS feeds into the db for publishing. # diff --git a/pgweb/core/management/commands/moderation_report.py b/pgweb/core/management/commands/moderation_report.py index 42c4647b..d2115ea9 100644 --- a/pgweb/core/management/commands/moderation_report.py +++ b/pgweb/core/management/commands/moderation_report.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Script to send daily moderation report to the NOTIFICATION_EMAIL address # (the moderators list) diff --git a/pgweb/news/management/commands/twitter_post.py b/pgweb/news/management/commands/twitter_post.py index 3efbdf40..655966ae 100644 --- a/pgweb/news/management/commands/twitter_post.py +++ b/pgweb/news/management/commands/twitter_post.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Script to post previosly unposted news to twitter # diff --git a/pgweb/news/management/commands/twitter_register.py b/pgweb/news/management/commands/twitter_register.py index b6c34c95..319898f8 100644 --- a/pgweb/news/management/commands/twitter_register.py +++ b/pgweb/news/management/commands/twitter_register.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Script to register twitter oauth privileges # diff --git a/tools/communityauth/generate_cryptkey.py b/tools/communityauth/generate_cryptkey.py index 9585f6c8..0e62f4c3 100755 --- a/tools/communityauth/generate_cryptkey.py +++ b/tools/communityauth/generate_cryptkey.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # This script generates a crypto key that can be used for diff --git a/tools/communityauth/test_auth.py b/tools/communityauth/test_auth.py index 26b36ecf..9d944999 100755 --- a/tools/communityauth/test_auth.py +++ b/tools/communityauth/test_auth.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # This script generates a URL valid for a test authentication, diff --git a/tools/docs/docload.py b/tools/docs/docload.py index 53204fb6..f71e896c 100755 --- a/tools/docs/docload.py +++ b/tools/docs/docload.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Script to load documentation from tarballs diff --git a/tools/ftp/spider_ftp.py b/tools/ftp/spider_ftp.py index f4100df8..8ea35574 100755 --- a/tools/ftp/spider_ftp.py +++ b/tools/ftp/spider_ftp.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # # spider_ftp.py - spider the ftp site and generate an output file with all diff --git a/tools/ftp/spider_yum.py b/tools/ftp/spider_yum.py index 05b83691..6528fba0 100755 --- a/tools/ftp/spider_yum.py +++ b/tools/ftp/spider_yum.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import argparse import sys import os diff --git a/tools/localhtmlvalidate/localhtmlvalidate.py b/tools/localhtmlvalidate/localhtmlvalidate.py index 08477571..34869372 100755 --- a/tools/localhtmlvalidate/localhtmlvalidate.py +++ b/tools/localhtmlvalidate/localhtmlvalidate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # localhtmlvalidate.py - validate local HTML for pgweb # diff --git a/tools/purgehook/purgehook.py b/tools/purgehook/purgehook.py index a4a6131a..2ccfdf88 100755 --- a/tools/purgehook/purgehook.py +++ b/tools/purgehook/purgehook.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # This hook script is run by gitdeployer when the code is # deployed to a server. figure out which templates have been diff --git a/tools/search/crawler/listcrawler.py b/tools/search/crawler/listcrawler.py index 5faac72e..1a416079 100755 --- a/tools/search/crawler/listcrawler.py +++ b/tools/search/crawler/listcrawler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from lib.log import log diff --git a/tools/search/crawler/listsync.py b/tools/search/crawler/listsync.py index 815d24ae..10da49e4 100755 --- a/tools/search/crawler/listsync.py +++ b/tools/search/crawler/listsync.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from lib.log import log diff --git a/tools/search/crawler/webcrawler.py b/tools/search/crawler/webcrawler.py index f3f139a7..ee65b54c 100755 --- a/tools/search/crawler/webcrawler.py +++ b/tools/search/crawler/webcrawler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from lib.log import log diff --git a/tools/varnishqueue/nagios_check.py b/tools/varnishqueue/nagios_check.py index b85452c2..75405324 100755 --- a/tools/varnishqueue/nagios_check.py +++ b/tools/varnishqueue/nagios_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import psycopg2 diff --git a/tools/varnishqueue/varnish_queue.py b/tools/varnishqueue/varnish_queue.py index 60eddce9..64f55f0f 100755 --- a/tools/varnishqueue/varnish_queue.py +++ b/tools/varnishqueue/varnish_queue.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # varnish_queue.py - handle varnish purging queues #