From 149e18fc021b97da2479a075aca18a5c6b613050 Mon Sep 17 00:00:00 2001 From: Raniere Silva Date: Wed, 23 May 2018 18:31:15 +0100 Subject: [PATCH] Change shebang to Python3 Close swcarpentry/styles#271 --- Makefile | 2 +- bin/lesson_check.py | 2 +- bin/lesson_initialize.py | 2 +- bin/repo_check.py | 2 +- bin/test_lesson_check.py | 2 ++ bin/util.py | 1 - bin/workshop_check.py | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a5765c7..415fd72 100644 --- a/Makefile +++ b/Makefile @@ -97,7 +97,7 @@ lesson-check-all : ## unittest : run unit tests on checking tools. unittest : - python bin/test_lesson_check.py + @bin/test_lesson_check.py ## lesson-files : show expected names of generated files for debugging. lesson-files : diff --git a/bin/lesson_check.py b/bin/lesson_check.py index 5d8b9dd..616885e 100755 --- a/bin/lesson_check.py +++ b/bin/lesson_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Check lesson files and their contents. diff --git a/bin/lesson_initialize.py b/bin/lesson_initialize.py index 80cdebd..a5eb6d0 100755 --- a/bin/lesson_initialize.py +++ b/bin/lesson_initialize.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Initialize a newly-created repository.""" diff --git a/bin/repo_check.py b/bin/repo_check.py index 770ccbb..af4b782 100755 --- a/bin/repo_check.py +++ b/bin/repo_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Check repository settings. diff --git a/bin/test_lesson_check.py b/bin/test_lesson_check.py index 10048b1..960059e 100755 --- a/bin/test_lesson_check.py +++ b/bin/test_lesson_check.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import unittest import lesson_check diff --git a/bin/util.py b/bin/util.py index e1a03a2..522f5df 100644 --- a/bin/util.py +++ b/bin/util.py @@ -1,4 +1,3 @@ - import sys import os import json diff --git a/bin/workshop_check.py b/bin/workshop_check.py index 67c086a..bd15210 100755 --- a/bin/workshop_check.py +++ b/bin/workshop_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''Check that a workshop's index.html metadata is valid. See the docstrings on the checking functions for a summary of the checks. -- 2.30.2