Skip to content

Commit

Permalink
More Python 3 compatibility fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam committed Sep 12, 2013
1 parent 5a4a376 commit 915e3a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nodeenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import ConfigParser
except ImportError:
# Python 3
from configparser import ConfigParser
import configparser as ConfigParser

from pkg_resources import parse_version

Expand Down Expand Up @@ -466,7 +466,7 @@ def print_node_versions():
pos = 0
rowx = []
while 1:
row = p.stdout.readline()
row = p.stdout.readline().decode('utf-8')
pos += 1
if not row:
logger.info('\t'.join(rowx))
Expand Down Expand Up @@ -501,7 +501,7 @@ def save_env_options(env_dir, opt, file_path='install.cfg'):
for o, v in opt.__dict__.items():
config.set(section_name, o, v)

with open(join(env_dir, file_path), 'wb') as configfile:
with open(join(env_dir, file_path), 'w') as configfile:
config.write(configfile)


Expand Down

0 comments on commit 915e3a9

Please # to comment.