Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e825cd

Browse files
committed
Make build and helper script work under Python 3.
1 parent81c01e3 commit9e825cd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎generator/java.stoneg.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@
4848
)
4949
fromstone.backendimportCodeBackend
5050

51+
@six.add_metaclass(abc.ABCMeta)
5152
classStoneType:
52-
__metaclass__=abc.ABCMeta
53+
pass
5354

5455
StoneType.register(ApiNamespace)
5556
StoneType.register(ApiRoute)
@@ -2265,7 +2266,7 @@ def __str__(self):
22652266

22662267
def_as_json(self):
22672268
dct= {}
2268-
fork,vinself.__dict__.iteritems():
2269+
fork,vinself.__dict__.items():
22692270
# avoid cyclic references issue
22702271
ifisinstance(v,JavaReference):
22712272
dct[k]=v.fq_name

‎scripts/export-generated

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def get_files_in_repo(repo_path, exclude_ignored_files=False):
7979
ignored_files=subprocess.check_output(command,cwd=repo_path).split()
8080
else:
8181
ignored_files= []
82-
return [fileforfileinfiles_listiffilenotinignored_files]
82+
return [file.decode('utf8')forfileinfiles_listiffilenotinignored_files]
8383

8484
defstrip_private_sections(path):
8585
"""Delete everything in the file between the private repo tags"""
@@ -121,7 +121,7 @@ def main():
121121
"""The entry point for the program."""
122122

123123
args=_cmdline_parser.parse_args()
124-
cwd=os.path.dirname(os.path.dirname(__file__))
124+
cwd=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
125125
repo_path=args.repo_path
126126
deflog(msg):
127127
ifargs.verbose:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp