Show More
@@ -2233,7 +2233,7 b' if api is not None:' | |||||
2233 | if isinstance(obj, type) and issubclass(obj, Table): |
|
2233 | if isinstance(obj, type) and issubclass(obj, Table): | |
2234 | obj = obj() |
|
2234 | obj = obj() | |
2235 | if isinstance(obj, Table): |
|
2235 | if isinstance(obj, Table): | |
2236 |
obj = obj |
|
2236 | obj = defaultdisplay(obj) | |
2237 | if isinstance(obj, Display): |
|
2237 | if isinstance(obj, Display): | |
2238 | return obj.display() |
|
2238 | return obj.display() | |
2239 | else: |
|
2239 | else: | |
@@ -2246,7 +2246,7 b' else:' | |||||
2246 | if isinstance(obj, type) and issubclass(obj, Table): |
|
2246 | if isinstance(obj, type) and issubclass(obj, Table): | |
2247 | obj = obj() |
|
2247 | obj = obj() | |
2248 | if isinstance(obj, Table): |
|
2248 | if isinstance(obj, Table): | |
2249 |
obj = obj |
|
2249 | obj = defaultdisplay(obj) | |
2250 | if isinstance(obj, Display): |
|
2250 | if isinstance(obj, Display): | |
2251 | return obj.display() |
|
2251 | return obj.display() | |
2252 | else: |
|
2252 | else: |
@@ -3,6 +3,8 b'' | |||||
3 | * ibrowse.py, igrid.py, ipipe.py: |
|
3 | * ibrowse.py, igrid.py, ipipe.py: | |
4 | The input object can now be passed to the constructor of the display classes. |
|
4 | The input object can now be passed to the constructor of the display classes. | |
5 | This makes it possible to use them with objects that implement __or__. |
|
5 | This makes it possible to use them with objects that implement __or__. | |
|
6 | Use this constructor in the displayhook instead of piping. | |||
|
7 | ||||
6 | * ipipe.py: Importing astyle.py is done as late as possible to |
|
8 | * ipipe.py: Importing astyle.py is done as late as possible to | |
7 | avoid problems with circular imports. |
|
9 | avoid problems with circular imports. | |
8 |
|
10 |
General Comments 0
You need to be logged in to leave comments.
Login now