Created
November 27, 2017 12:00
-
-
Save mattearnshaw/10f02a16415eeb38c46e3a587f1121ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/generator/java.stoneg.py b/generator/java.stoneg.py | |
index dda20b58..38df2fe8 100644 | |
--- a/generator/java.stoneg.py | |
+++ b/generator/java.stoneg.py | |
@@ -49,8 +49,8 @@ from stone.data_type import ( | |
Void, | |
) | |
-class StoneType: | |
- __metaclass__ = abc.ABCMeta | |
+class StoneType(metaclass=abc.ABCMeta): | |
+ pass | |
StoneType.register(ApiNamespace) | |
StoneType.register(ApiRoute) | |
@@ -2264,7 +2264,7 @@ class JavaReference(object): | |
def _as_json(self): | |
dct = {} | |
- for k, v in self.__dict__.iteritems(): | |
+ for k, v in self.__dict__.items(): | |
# avoid cyclic references issue | |
if isinstance(v, JavaReference): | |
dct[k] = v.fq_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment