Skip to content

Commit

Permalink
Fix the parsing of realhud's compilation flags
Browse files Browse the repository at this point in the history
  • Loading branch information
mertyildiran committed Apr 22, 2018
1 parent fbbffb5 commit 1c16ce7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dragonfire/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import contextlib

try:
import StringIO
import cStringIO
except ImportError:
import io as StringIO
import io as cStringIO

import datetime
import inspect
Expand Down
4 changes: 2 additions & 2 deletions dragonfire/omniscient.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import contextlib

try:
import StringIO
import cStringIO
except ImportError:
import io as StringIO
import io as cStringIO

import random
import sys
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def pkgconfig(*packages):
config = {}

for token in output.split():
token = token.decode('ascii')
if token != '-pthread':
flag, value = token[:2], token[2:]
config.setdefault(flags[flag], []).append(value)
Expand Down

0 comments on commit 1c16ce7

Please sign in to comment.