Skip to content
Prev Previous commit
remove unicode
  • Loading branch information
jtrain committed Oct 18, 2017
commit 046fddc6e135888552ec3db451525e6cdf3c54b8
4 changes: 2 additions & 2 deletions docx/oxml/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ def new(cls, cx, cy, shape_id, pic, position, margin=None, wrap=None):
else:
anchor.positionH.set('relativeFrom', 'margin')
align = anchor.positionH._add_align()
align.text = unicode(positionH)
align.text = positionH

anchor.positionV.getchildren()[0].text = unicode(positionV)
anchor.positionV.getchildren()[0].text = positionV

if margin is not None:
anchor.set('distT', u"%d" % margin.get('top', 0))
Expand Down