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
This commit is contained in:
parent
19c3792af5
commit
41b065eb76
|
@ -165,8 +165,7 @@ def build_custom_checkers(by_lang):
|
||||||
# This rule might give false positives in virtualenv setup files which should be excluded,
|
# 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.
|
# and comments which should be rewritten to avoid use of "python2", "python3", etc.
|
||||||
{'pattern': 'python[23]',
|
{'pattern': 'python[23]',
|
||||||
'exclude': set(['tools/provision']),
|
'include_only': set(['zulip/', 'zulip_botserver/']),
|
||||||
'include_only': set(['zulip/', 'tools/', 'zulip_botserver/']),
|
|
||||||
'description': 'Explicit python invocations should not include a version'},
|
'description': 'Explicit python invocations should not include a version'},
|
||||||
{'pattern': '__future__',
|
{'pattern': '__future__',
|
||||||
'include_only': set(['zulip_bots/zulip_bots/bots/']),
|
'include_only': set(['zulip_bots/zulip_bots/bots/']),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from os.path import dirname, basename
|
from os.path import dirname, basename
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
Loading…
Reference in a new issue