From 1fbddc9f80dc6c7810a7df0956167ffd3be4586c Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Tue, 6 Feb 2001 22:05:01 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/ffi/FFIExternalObject.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/direct/src/ffi/FFIExternalObject.py b/direct/src/ffi/FFIExternalObject.py index 8ec798960e..7377ad2186 100644 --- a/direct/src/ffi/FFIExternalObject.py +++ b/direct/src/ffi/FFIExternalObject.py @@ -174,14 +174,13 @@ class FFIExternalObject: # Lots of Panda classes have an output function defined that takes an Ostream # We create a LineStream for the output function to write to, then we extract # the string out of it and return it as our str - baseRepr = '' - import LineStream - lineStream = LineStream.LineStream() try: + import LineStream + lineStream = LineStream.LineStream() self.output(lineStream) - baseRepr = baseRepr + lineStream.getLine() + baseRepr = lineStream.getLine() except: - pass + baseRepr = ('[' + self.__class__.__name__ + ' at: ' + `self.this` + ']') # In any case, return the baseRepr return baseRepr