summaryrefslogtreecommitdiff
path: root/tools/generate_operator_out.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/generate_operator_out.py')
-rwxr-xr-xtools/generate_operator_out.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/generate_operator_out.py b/tools/generate_operator_out.py
index 921ae68bcb..f1491d827f 100755
--- a/tools/generate_operator_out.py
+++ b/tools/generate_operator_out.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright (C) 2012 The Android Open Source Project
#
@@ -206,7 +206,7 @@ def main():
print('namespace %s {' % namespace)
print(
- 'std::ostream& operator<<(std::ostream& os, const %s& rhs) {' % enum_name)
+ 'std::ostream& operator<<(std::ostream& os, %s rhs) {' % enum_name)
print(' switch (rhs) {')
for (enum_value, enum_text) in _ENUMS[enum_name]:
print(' case %s: os << "%s"; break;' % (enum_value, enum_text))