File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Wrapping/Generators/Python Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 17
17
# ==========================================================================*/
18
18
19
19
import re
20
+ from sys import stderr as system_error_stream
20
21
21
22
# The following line defines an ascii string used for dynamically refreshing
22
23
# the import and progress callbacks on the same terminal line.
@@ -147,19 +148,13 @@ def force_load():
147
148
getattr (itk , k )
148
149
149
150
150
- import sys
151
-
152
-
153
- def echo (object , f = sys .stderr ):
154
- """Print an object is f
151
+ def echo (obj , f = system_error_stream ):
152
+ """Print an object to stream
155
153
156
154
If the object has a method Print(), this method is used.
157
- repr(object ) is used otherwise
155
+ repr(obj ) is used otherwise
158
156
"""
159
- print (f , object )
160
-
161
-
162
- del sys
157
+ print (f , obj )
163
158
164
159
165
160
def size (image_or_filter ):
You can’t perform that action at this time.
0 commit comments