Skip to content

Commit

Permalink
Python3 compatibility for recent code additions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryneeverett committed Nov 9, 2016
1 parent 3f0f369 commit 16f3479
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bugwarrior/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def get_data_path(config, main_section):
data_location = subprocess.check_output(
('grep', '-e', '^' + line_prefix), stdin=tw_show.stdout)
tw_show.wait()
data_path = data_location[len(line_prefix):].rstrip()
data_path = data_location[len(line_prefix):].rstrip().decode('utf-8')

if not data_path:
raise RuntimeError('Unable to determine the data location.')
Expand Down
4 changes: 2 additions & 2 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import unicode_literals

import os
import ConfigParser
import configparser

import bugwarrior.config as config

Expand Down Expand Up @@ -76,7 +76,7 @@ class TestGetDataPath(ConfigTest):

def setUp(self):
super(TestGetDataPath, self).setUp()
self.config = ConfigParser.RawConfigParser()
self.config = configparser.RawConfigParser()
self.config.add_section('general')

def assertDataPath(self, expected_datapath):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import json
import ConfigParser
import configparser

from bugwarrior import data

Expand All @@ -10,7 +10,7 @@
class TestData(ConfigTest):
def setUp(self):
super(TestData, self).setUp()
config = ConfigParser.RawConfigParser()
config = configparser.RawConfigParser()
config.add_section('general')
self.data = data.BugwarriorData(config, 'general')

Expand Down

0 comments on commit 16f3479

Please sign in to comment.