Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import
Refer #256
This commit is contained in:
parent
d998bc400a
commit
37365ba5a3
21 changed files with 53 additions and 32 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python2.7
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import time
|
||||
import optparse
|
||||
|
@ -15,7 +16,7 @@ states = {
|
|||
}
|
||||
|
||||
if 'USER' in os.environ and not os.environ['USER'] in ['root', 'rabbitmq']:
|
||||
print "This script must be run as the root or rabbitmq user"
|
||||
print("This script must be run as the root or rabbitmq user")
|
||||
|
||||
|
||||
usage = """Usage: check-rabbitmq-consumers --queue=[queue-name] --min-threshold=[min-threshold]"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue