Commit 38201dc9 authored by Raul Tambre's avatar Raul Tambre Committed by Commit Bot

printing/cups_config_helper.py: Include print_function

CL:1825568 added parentheses around all print statements.
The parantheses result in things being printed as tuples in Python 2
and normally in Python 3.
Adding the import makes the behaviour consistent, reducing the
likelihood of incompatible changes between the two in the future.

Bug: 941669
Change-Id: I14275266ee3b410668b5fb1efab192aa1f7cb42b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827011
Commit-Queue: Raul Tambre <raul@tambre.ee>
Auto-Submit: Raul Tambre <raul@tambre.ee>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#700333}
parent ecfd30c3
......@@ -17,13 +17,15 @@ requirements) when this is fixed:
is fixed.
"""
from __future__ import print_function
import os
import subprocess
import sys
def usage():
print ('usage: %s {--api-version|--cflags|--ldflags|--libs|--libs-for-gn} '
'[sysroot]' % sys.argv[0])
print('usage: %s {--api-version|--cflags|--ldflags|--libs|--libs-for-gn} '
'[sysroot]' % sys.argv[0])
def run_cups_config(cups_config, mode):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment