Skip to content

Commit

Permalink
fix UTF (apache#8185)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh authored and Trevor Morris committed Jun 17, 2021
1 parent e59bcf2 commit 0e910f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/tvm/driver/tvmc/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

@register_parser
def add_compile_parser(subparsers):
""" Include parser for 'compile' subcommand """
"""Include parser for 'compile' subcommand"""

parser = subparsers.add_parser("compile", help="compile a model.")
parser.set_defaults(func=drive_compile)
Expand Down
8 changes: 4 additions & 4 deletions tests/lint/git-black.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ if [[ "$#" -lt 1 ]]; then
exit 1
fi

# required to make black's dep click to work
export LC_ALL=C.UTF-8
export LANG=C.UTF-8

if [ ! -x "$(command -v black)" ]; then
echo "Cannot find black"
exit 1
Expand All @@ -54,10 +58,6 @@ if [ -z ${FILES+x} ]; then
fi
echo "Files: $FILES"

# required to make black's dep click to work
export LC_ALL=C.UTF-8
export LANG=C.UTF-8

if [[ ${INPLACE_FORMAT} -eq 1 ]]; then
echo "Running black on Python files against revision" $1:
CMD=( "black" "${FILES[@]}" )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run_model_graph(TestClass):

def test_add_one():
class AddOne(tf.Module):
""" simple function to test x=x+1; scalar as input"""
"""simple function to test x=x+1; scalar as input"""

def get_input(self):
return np.array(1.0, dtype="float32")
Expand Down

0 comments on commit 0e910f0

Please sign in to comment.