From 41b065eb762c76748f7eee4f25515465ccdfd0f6 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sun, 31 Dec 2017 09:51:24 -0500 Subject: [PATCH] tools: Fix python -> python3 for bots scripts. This also turns off the custom lint check that was preventing an explicit version for scripts in "tools". Fixes #187 --- tools/custom_check.py | 3 +-- tools/test-bots | 2 +- tools/test-lib | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/custom_check.py b/tools/custom_check.py index 6bd5ea5..70b4bdd 100644 --- a/tools/custom_check.py +++ b/tools/custom_check.py @@ -165,8 +165,7 @@ def build_custom_checkers(by_lang): # This rule might give false positives in virtualenv setup files which should be excluded, # and comments which should be rewritten to avoid use of "python2", "python3", etc. {'pattern': 'python[23]', - 'exclude': set(['tools/provision']), - 'include_only': set(['zulip/', 'tools/', 'zulip_botserver/']), + 'include_only': set(['zulip/', 'zulip_botserver/']), 'description': 'Explicit python invocations should not include a version'}, {'pattern': '__future__', 'include_only': set(['zulip_bots/zulip_bots/bots/']), diff --git a/tools/test-bots b/tools/test-bots index 4792ce5..496c3aa 100755 --- a/tools/test-bots +++ b/tools/test-bots @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from os.path import dirname, basename from importlib import import_module diff --git a/tools/test-lib b/tools/test-lib index a933fd4..7c1bc2e 100755 --- a/tools/test-lib +++ b/tools/test-lib @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import sys