Skip to content

Commit b821d1d

Browse files
author
Steve Canny
committed
oxml: convert CT_GraphicalObject to xmlchemy
1 parent 504065a commit b821d1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docx/oxml/shape.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
from ..shared import Emu
99
from .ns import nsmap, nspfxmap, qn
1010
from .simpletypes import ST_RelationshipId
11-
from .xmlchemy import BaseOxmlElement, OptionalAttribute, ZeroOrOne
11+
from .xmlchemy import (
12+
BaseOxmlElement, OneAndOnlyOne, OptionalAttribute, ZeroOrOne
13+
)
1214

1315

1416
class CT_Blip(BaseOxmlElement):
@@ -46,9 +48,7 @@ class CT_GraphicalObject(BaseOxmlElement):
4648
"""
4749
``<a:graphic>`` element, container for a DrawingML object
4850
"""
49-
@property
50-
def graphicData(self):
51-
return self.find(qn('a:graphicData'))
51+
graphicData = OneAndOnlyOne('a:graphicData')
5252

5353
@classmethod
5454
def new(cls, uri, pic):

0 commit comments

Comments
 (0)