mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +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 ]
|
||||
* 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
|
||||
|
||||
|
@ -29,9 +29,6 @@
|
||||
# hugdaylist -n <howmany> <url>
|
||||
# - will only list <howmany> URLs.
|
||||
|
||||
import os
|
||||
import re
|
||||
import string
|
||||
import sys
|
||||
from optparse import OptionParser
|
||||
|
||||
@ -99,7 +96,7 @@ def main():
|
||||
product = launchpad.load(api_url)
|
||||
except Exception, e:
|
||||
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
|
||||
sys.exit(1)
|
||||
else:
|
||||
|
@ -23,7 +23,7 @@ import os
|
||||
import sys
|
||||
from optparse import OptionParser, make_option
|
||||
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):
|
||||
|
||||
|
2
massfile
2
massfile
@ -26,8 +26,6 @@
|
||||
import os
|
||||
import sys
|
||||
import email
|
||||
import subprocess
|
||||
import glob
|
||||
|
||||
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
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import os, sys, re, time, logging
|
||||
|
||||
from stat import *
|
||||
from textwrap import fill
|
||||
import sys, re
|
||||
|
||||
def usage():
|
||||
print '''Usage: merge-changelog <left changelog> <right changelog>
|
||||
|
@ -106,7 +106,7 @@ def edit_report(subject, body, changes_required = False):
|
||||
|
||||
# Launch editor
|
||||
try:
|
||||
editor = subprocess.check_call(['sensible-editor', report_file.name])
|
||||
subprocess.check_call(['sensible-editor', report_file.name])
|
||||
except subprocess.CalledProcessError, e:
|
||||
print >> sys.stderr, 'Error calling sensible-editor: %s\nAborting.' % e
|
||||
sys.exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user