Merge pull request #3343 from Piratonym/issue-3336

Use python2 in Python script shebang lines
This commit is contained in:
Paul Gear
2016-04-22 13:33:00 +10:00
5 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python2
""" """
poller-service A service to wrap SNMP polling. It will poll up to $threads devices at a time, and will not re-poll poller-service A service to wrap SNMP polling. It will poll up to $threads devices at a time, and will not re-poll
devices that have been polled within the last $poll_frequency seconds. It will prioritize devices based devices that have been polled within the last $poll_frequency seconds. It will prioritize devices based

View File

@@ -1,4 +1,4 @@
#! /usr/bin/env python #! /usr/bin/env python2
""" """
poller-wrapper A small tool which wraps around the poller and tries to poller-wrapper A small tool which wraps around the poller and tries to
guide the polling process with a more modern approach with a guide the polling process with a more modern approach with a

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
import urllib2 import urllib2
import re import re

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
import warnings import warnings
import re import re
warnings.filterwarnings(action="ignore", message='the sets module is deprecated') warnings.filterwarnings(action="ignore", message='the sets module is deprecated')

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
import urllib2 import urllib2
import re import re