Python 3.
This commit is contained in:
parent
762cd7d8ce
commit
b0676719a5
|
|
@ -29,7 +29,7 @@ def create_data(from_dir='./default_joy_home'):
|
|||
return base64.encodestring(f.getvalue())
|
||||
|
||||
|
||||
Z = zipfile.ZipFile(io.BytesIO(base64.decodestring('''\
|
||||
Z = zipfile.ZipFile(io.BytesIO(base64.decodestring(b'''\
|
||||
UEsDBBQAAAAAAJKh9Uw/yHAgFQQAABUEAAALAAAAc2NyYXRjaC50eHRyZXNldF9sb2cgd29yZHMg
|
||||
bW91c2VfYmluZGluZ3Mga2V5X2JpbmRpbmdzCgpTdGFjayBDaGF0dGVyCgogZHVwIGR1cGQgZHVw
|
||||
ZGQgb3ZlciB0dWNrCiBwb3AgcG9wZCBwb3BkZCBwb3BvcCBwb3BvcGQgcG9wb3BkZAogc3dhcCBy
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from dulwich.errors import NotGitRepository
|
|||
from dulwich.repo import Repo
|
||||
|
||||
|
||||
COMMITTER = 'Joy <auto-commit@example.com>'
|
||||
COMMITTER = b'Joy <auto-commit@example.com>'
|
||||
DEFAULT_JOY_HOME = expanduser(join('~', '.joypy'))
|
||||
|
||||
|
||||
|
|
@ -66,7 +66,7 @@ def init_repo(repo_dir):
|
|||
import joy.gui.init_joy_home
|
||||
joy.gui.init_joy_home.initialize(repo_dir)
|
||||
repo.stage([fn for fn in listdir(repo_dir) if isfile(join(repo_dir, fn))])
|
||||
repo.do_commit('Initial commit.', committer=COMMITTER)
|
||||
repo.do_commit(b'Initial commit.', committer=COMMITTER)
|
||||
return repo
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue