Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Use unicode literals to resolve Python 2.7 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cmc333333 committed Jan 8, 2017
1 parent 669f293 commit a64e9ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interpparser/amendments.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from copy import deepcopy
import functools

Expand Down Expand Up @@ -39,7 +41,7 @@ def contains_supp(n):
sectno = child.xpath('./SECTNO')[0]
subject = child.xpath('./SUBJECT')[0]
header = etree.Element("HD", SOURCE="HD2")
header.text = sectno.text + u'—' + subject.text
header.text = sectno.text + '—' + subject.text
child.insert(child.index(sectno), header)
child.remove(sectno)
child.remove(subject)
Expand Down

0 comments on commit a64e9ce

Please sign in to comment.