# HG changeset patch # User Paul Boddie # Date 1105397539 -3600 # Node ID 83efe2ce143fb4bd81824df5ad0e1278776c63b1 # Parent ed58b4f865e1bf47f970448b58c1c8b528dfc3e3 Moved the lang module contents into the lang package. Fixed various java.lang and java.io circular imports by introducing a java.lang._object module. Corrected various base classes (object -> java.lang.Object, Exception -> java.lang.Exception) and fixed raising of exceptions in certain cases. diff -r ed58b4f865e1 -r 83efe2ce143f java/text.py --- a/java/text.py Mon Jan 10 23:52:19 2005 +0100 +++ b/java/text.py Mon Jan 10 23:52:19 2005 +0100 @@ -1,6 +1,8 @@ #!/usr/bin/env python -class FilterOutputStream(object): +import java.lang + +class FilterOutputStream(java.lang.Object): def __init__(self, out): self.out = out def write(self, value, *args): @@ -14,7 +16,7 @@ def close(self): self.out.close() -class InputStream(object): +class InputStream(java.lang.Object): def read(self, *args): raise NotImplementedError, "read" def skip(self, n): @@ -30,7 +32,7 @@ def markSupported(self): raise NotImplementedError, "markSupported" -class MessageFormat(object): +class MessageFormat(java.lang.Object): def __init__(self, pattern): self.pattern = pattern @@ -63,7 +65,7 @@ setattr(MessageFormat, "__init_____java__lang__String", MessageFormat.__init__) -class OutputStream(object): +class OutputStream(java.lang.Object): def write(self, b, *args): raise NotImplementedError, "write" def flush(self):