Skip to content

Commit 94b12fb

Browse files
committed
Update check-format to be python3 compatible
1 parent d1c9b48 commit 94b12fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check_format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
set -e
33

4-
PYTHON_VERSION=$(python -c 'import sys; print sys.version_info.major')
4+
PYTHON_VERSION=$(python -c 'import sys; print(sys.version_info.major)')
55
if [ "$PYTHON_VERSION" = "2" ]; then
66
echo "Skipping formatting, black not compatible with python 2"
77
exit 0

0 commit comments

Comments
 (0)