Skip to content

Commit 38272b4

Browse files
author
Steve Canny
committed
api: remove old Document.inline_shapes
1 parent 026db1b commit 38272b4

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

docx/api.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ def core_properties(self):
7676

7777
@property
7878
def inline_shapes(self):
79-
"""
80-
Return a reference to the |InlineShapes| instance for this document.
81-
"""
82-
return self._document_part.inline_shapes
79+
return self._document.inline_shapes
8380

8481
@lazyproperty
8582
def numbering_part(self):

tests/test_api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ def Package_(self, request):
8787

8888
class DescribeDocumentOld(object):
8989

90-
def it_provides_access_to_the_document_inline_shapes(self, document):
91-
body = document.inline_shapes
92-
assert body is document._document_part.inline_shapes
93-
9490
def it_provides_access_to_the_document_paragraphs(
9591
self, paragraphs_fixture):
9692
document, paragraphs_ = paragraphs_fixture

0 commit comments

Comments
 (0)