Skip to content

Commit

Permalink
fix: cmake on python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Nov 25, 2020
1 parent 1ad39a1 commit fd61f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylib/gyp/generator/cmake.py
Expand Up @@ -41,7 +41,7 @@
try:
# maketrans moved to str in python3.
_maketrans = string.maketrans
except NameError:
except (NameError, AttributeError):
_maketrans = str.maketrans

generator_default_variables = {
Expand Down

0 comments on commit fd61f5f

Please sign in to comment.