Skip to content

Commit 0af022a

Browse files
author
Steve Canny
committed
oxml: convert CT_Inline to xmlchemy
1 parent 0087e2d commit 0af022a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docx/oxml/shape.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,8 @@ class CT_Inline(BaseOxmlElement):
7777
"""
7878
``<w:inline>`` element, container for an inline shape.
7979
"""
80-
@property
81-
def extent(self):
82-
return self.find(qn('wp:extent'))
83-
84-
@property
85-
def graphic(self):
86-
return self.find(qn('a:graphic'))
80+
extent = OneAndOnlyOne('wp:extent')
81+
graphic = OneAndOnlyOne('a:graphic')
8782

8883
@classmethod
8984
def new(cls, cx, cy, shape_id, pic):

0 commit comments

Comments
 (0)