diff options
Diffstat (limited to 'trace.py')
| -rw-r--r-- | trace.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -13,6 +13,7 @@ | |||
| 13 | # See the License for the specific language governing permissions and | 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. | 14 | # limitations under the License. |
| 15 | 15 | ||
| 16 | from __future__ import print_function | ||
| 16 | import sys | 17 | import sys |
| 17 | import os | 18 | import os |
| 18 | REPO_TRACE = 'REPO_TRACE' | 19 | REPO_TRACE = 'REPO_TRACE' |
| @@ -31,4 +32,4 @@ def SetTrace(): | |||
| 31 | 32 | ||
| 32 | def Trace(fmt, *args): | 33 | def Trace(fmt, *args): |
| 33 | if IsTrace(): | 34 | if IsTrace(): |
| 34 | print >>sys.stderr, fmt % args | 35 | print(fmt % args, file=sys.stderr) |
