hugdaylist, manage-credentials, massfile, merge-changelog,

ubuntutools/requestsync/common.py: Some pyflakes-induced cleanup.
This commit is contained in:
Stefano Rivera 2010-09-22 11:29:14 +02:00
parent 42e9c465f9
commit e55766b0d9
6 changed files with 6 additions and 12 deletions

2
debian/changelog vendored
View File

@ -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

View File

@ -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:

View File

@ -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):

View File

@ -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

View File

@ -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>

View File

@ -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)