Skip to content

Commit

Permalink
PEP8 pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed May 20, 2013
1 parent 3aa3bce commit 91e92ad
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bugwarrior/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def synchronize(issues, conf):
def _bool_option(section, option, default):
try:
return section in conf.sections() and \
asbool(conf.get(section, option, default))
asbool(conf.get(section, option, default))
except NoOptionError:
return default

Expand Down Expand Up @@ -113,11 +113,16 @@ def _bool_option(section, option, default):
# Call task merge from users local database
config = tw.load_config(config_filename='~/.bugwarrior_taskrc')
bwtask_data = "%s/" % config['data']['location']
subprocess.call(['task', 'rc.verbose=nothing', 'rc.merge.autopush=no', 'merge', bwtask_data])
subprocess.call([
'task', 'rc.verbose=nothing', 'rc.merge.autopush=no',
'merge', bwtask_data])
# Delete completed tasks from Bugwarrior tasks DB. This allows for
# assigning/unassigning tasks in a remote service, and tracking status
# changes in Bugwarrior.
subprocess.call(['task', 'rc:~/.bugwarrior_taskrc', 'rc.verbose=nothing', 'rc.confirmation=no', 'rc.bulk=100', 'status:completed', 'delete'])
subprocess.call([
'task', 'rc:~/.bugwarrior_taskrc', 'rc.verbose=nothing',
'rc.confirmation=no', 'rc.bulk=100', 'status:completed',
'delete'])

# Send notifications
if notify:
Expand Down

0 comments on commit 91e92ad

Please sign in to comment.