Skip to content

Commit

Permalink
Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
mgukov committed Dec 16, 2018
1 parent 35a9a8a commit a5c8c20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions gitosis/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ def init_admin_repository(
# ConfigParser does not guarantee order, so jump through hoops
# to make sure [gitosis] is first
cfg_file = StringIO()
print >>cfg_file, '[gitosis]'
print >>cfg_file
print('[gitosis]', file=cfg_file)
#print('', end="", file=cfg_file)

#print >>cfg_file, '[gitosis]'
#print >>cfg_file
cfg = RawConfigParser()
cfg.add_section('group gitosis-admin')
cfg.set('group gitosis-admin', 'members', user)
Expand Down
2 changes: 1 addition & 1 deletion gitosis/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def has_initial_commit(git_dir):
stdout=subprocess.PIPE,
close_fds=True,
)
got = child.stdout.read()
got = child.stdout.read().decode('utf-8')
returncode = child.wait()
if returncode != 0:
raise GitRevParseError('exit status %d' % returncode)
Expand Down

0 comments on commit a5c8c20

Please sign in to comment.