Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Commit aef53e2

Browse files
coreapi show should work with Object, Array and Link
1 parent dc08895 commit aef53e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coreapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from coreapi import codecs, history, transports
77

88

9-
__version__ = '1.13.0'
9+
__version__ = '1.13.1'
1010
__all__ = [
1111
'Array', 'Document', 'Link', 'Object', 'Error', 'Field',
1212
'ParseError', 'NotAcceptable', 'TransportError', 'ErrorMessage',

coreapi/commandline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def set_document(doc):
8787

8888

8989
def display(doc):
90-
if isinstance(doc, (coreapi.Document, coreapi.Error)):
90+
if isinstance(doc, (coreapi.Document, coreapi.Error, coreapi.Object, coreapi.Array, coreapi.Link)):
9191
codec = coreapi.codecs.CoreTextCodec()
9292
return codec.dump(doc, colorize=True)
9393
if doc is None:

0 commit comments

Comments
 (0)