diff options
author | Guido Günther <agx@sigxcpu.org> | 2010-12-26 22:07:28 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-12-28 00:15:13 +0100 |
commit | 91b0aa890c5282746557ada7faa4b9a4353b23b4 (patch) | |
tree | 00d681367336fda4272e58b468b306d6de6bfe12 /git-dch | |
parent | b23f05bd62734439c845be1c0c322eabb4d5bcb6 (diff) |
pychecker warning cleanups
(mostly unused variables and imports)
Diffstat (limited to 'git-dch')
-rwxr-xr-x | git-dch | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -31,7 +31,6 @@ from gbp.git import (GitRepositoryError, GitRepository, build_tag, tag_to_versio from gbp.config import GbpOptionParser, GbpOptionGroup from gbp.errors import GbpError from gbp.deb import parse_changelog, NoChangelogError, is_native, compare_versions -from gbp.command_wrappers import (Command, CommandExecFailed) user_customizations = {} snapshot_re = re.compile("\s*\*\* SNAPSHOT build @(?P<commit>[a-z0-9]+)\s+\*\*") @@ -39,8 +38,8 @@ snapshot_re = re.compile("\s*\*\* SNAPSHOT build @(?P<commit>[a-z0-9]+)\s+\*\*") def system(cmd): try: - Command(cmd, shell=True)() - except CommandExecFailed: + gbpc.Command(cmd, shell=True)() + except gbpc.CommandExecFailed: raise GbpError @@ -292,7 +291,7 @@ def process_options(options, parser): return dch_options -def process_editor_option(options, parser): +def process_editor_option(options): # Determine Editor and check if we need it states = ['always'] @@ -312,7 +311,6 @@ def main(argv): changelog = 'debian/changelog' until = 'HEAD' found_snapshot_header = False - first_commit = None version_change = {} try: @@ -382,7 +380,7 @@ def main(argv): (options, args) = parser.parse_args(argv[1:]) gbp.log.setup(options.color, options.verbose) dch_options = process_options(options, parser) - editor_cmd = process_editor_option(options, parser) + editor_cmd = process_editor_option(options) try: try: |