mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
hugdaylist, manage-credentials, massfile, merge-changelog,
ubuntutools/requestsync/common.py: Some pyflakes-induced cleanup.
This commit is contained in:
parent
42e9c465f9
commit
e55766b0d9
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -28,6 +28,8 @@ ubuntu-dev-tools (0.103) UNRELEASED; urgency=low
|
|||||||
|
|
||||||
[ Stefano Rivera ]
|
[ Stefano Rivera ]
|
||||||
* Add manpages for sponsor-patch and import-bug-from-debian.
|
* Add manpages for sponsor-patch and import-bug-from-debian.
|
||||||
|
* hugdaylist, manage-credentials, massfile, merge-changelog,
|
||||||
|
ubuntutools/requestsync/common.py: Some pyflakes-induced cleanup.
|
||||||
|
|
||||||
-- Benjamin Drung <bdrung@ubuntu.com> Tue, 21 Sep 2010 23:52:46 +0200
|
-- Benjamin Drung <bdrung@ubuntu.com> Tue, 21 Sep 2010 23:52:46 +0200
|
||||||
|
|
||||||
|
@ -29,9 +29,6 @@
|
|||||||
# hugdaylist -n <howmany> <url>
|
# hugdaylist -n <howmany> <url>
|
||||||
# - will only list <howmany> URLs.
|
# - will only list <howmany> URLs.
|
||||||
|
|
||||||
import os
|
|
||||||
import re
|
|
||||||
import string
|
|
||||||
import sys
|
import sys
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
@ -99,7 +96,7 @@ def main():
|
|||||||
product = launchpad.load(api_url)
|
product = launchpad.load(api_url)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
x = getattr(e, "response", {})
|
x = getattr(e, "response", {})
|
||||||
if response.get("status", None) == "404":
|
if x.get("status", None) == "404":
|
||||||
print >> sys.stderr, "The URL at '%s' does not appear to be a valid url to a product" %url
|
print >> sys.stderr, "The URL at '%s' does not appear to be a valid url to a product" %url
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
|
@ -23,7 +23,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
from optparse import OptionParser, make_option
|
from optparse import OptionParser, make_option
|
||||||
from launchpadlib.uris import lookup_service_root
|
from launchpadlib.uris import lookup_service_root
|
||||||
from ubuntutools.lp.libsupport import Launchpad, translate_web_api, LEVEL
|
from ubuntutools.lp.libsupport import Launchpad, translate_api_web, LEVEL
|
||||||
|
|
||||||
class CmdOptions(OptionParser):
|
class CmdOptions(OptionParser):
|
||||||
|
|
||||||
|
2
massfile
2
massfile
@ -26,8 +26,6 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import email
|
import email
|
||||||
import subprocess
|
|
||||||
import glob
|
|
||||||
|
|
||||||
from ubuntutools.lp.libsupport import get_launchpad, translate_api_web, translate_web_api
|
from ubuntutools.lp.libsupport import get_launchpad, translate_api_web, translate_web_api
|
||||||
|
|
||||||
|
@ -18,10 +18,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import os, sys, re, time, logging
|
import sys, re
|
||||||
|
|
||||||
from stat import *
|
|
||||||
from textwrap import fill
|
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print '''Usage: merge-changelog <left changelog> <right changelog>
|
print '''Usage: merge-changelog <left changelog> <right changelog>
|
||||||
|
@ -106,7 +106,7 @@ def edit_report(subject, body, changes_required = False):
|
|||||||
|
|
||||||
# Launch editor
|
# Launch editor
|
||||||
try:
|
try:
|
||||||
editor = subprocess.check_call(['sensible-editor', report_file.name])
|
subprocess.check_call(['sensible-editor', report_file.name])
|
||||||
except subprocess.CalledProcessError, e:
|
except subprocess.CalledProcessError, e:
|
||||||
print >> sys.stderr, 'Error calling sensible-editor: %s\nAborting.' % e
|
print >> sys.stderr, 'Error calling sensible-editor: %s\nAborting.' % e
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user