Turn on H233 and start using print function

As much as anything, I'm just tired of seeing a bunch or piecemeal
fixes.
Note that we *need* to include
 from __future__ import print_function
in order to support things like
 print() # Would print "()" (the repr of an empty tuple) otherwise
 print(foo, end='') # Would SyntaxError
 print(bar, file=sys.stderr) # Would SyntaxError
Change-Id: I8fdf0740e292eb1ee785512d02e8c552781dcae1
This commit is contained in:
Tim Burke
2016年07月07日 18:00:05 +00:00
parent ae2b7a0ce8
commit 9890184ea9

View File

@@ -142,10 +142,10 @@ if __name__ == '__main__':
try:
conf_path = sys.argv[1]
except Exception:
print"Usage: %s CONF_FILE" % sys.argv[0].split('/')[-1]
print("Usage: %s CONF_FILE" % sys.argv[0].split('/')[-1])
sys.exit(1)
if not c.read(conf_path):
print"Unable to read config file %s" % conf_path
print("Unable to read config file %s" % conf_path)
sys.exit(1)
conf = dict(c.items('drive-audit'))
device_dir = conf.get('device_dir', '/srv/node')
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.