Skip to content

Instantly share code, notes, and snippets.

@mattearnshaw
Created November 27, 2017 12:00
Show Gist options
  • Save mattearnshaw/10f02a16415eeb38c46e3a587f1121ed to your computer and use it in GitHub Desktop.
Save mattearnshaw/10f02a16415eeb38c46e3a587f1121ed to your computer and use it in GitHub Desktop.
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