| Index: sitescripts/subscriptions/knownIssuesParser.py |
| =================================================================== |
| --- a/sitescripts/subscriptions/knownIssuesParser.py |
| +++ b/sitescripts/subscriptions/knownIssuesParser.py |
| @@ -145,20 +145,17 @@ def extractMatches(rules, rulesets, lang |
| result = result.keys() |
| result.sort() |
| return result |
| @cached(600) |
| def getRules(): |
| repoPath = os.path.abspath(get_config().get('subscriptions', 'repository')) |
| - (data, errors) = subprocess.Popen(['hg', '-R', repoPath, 'cat', '-r', 'default', os.path.join(repoPath, 'knownIssues')], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() |
| - if errors: |
| - print >>sys.stderr, errors |
| - |
| + data = subprocess.check_output(['hg', '-q', '-R', repoPath, 'cat', '-r', 'default', os.path.join(repoPath, 'knownIssues')]) |
| data = data.decode('utf-8').replace('\r', '').split('\n') |
| data.append('[]') # Pushes out last section |
| rules = {} |
| rulesets = [] |
| ruleset = None |
| for line in data: |