Skip to content

Commit

Permalink
Fix XPathContext.get_path() for processing typed elements
Browse files Browse the repository at this point in the history
  • Loading branch information
brunato committed Dec 17, 2019
1 parent 402826a commit e635202
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
CHANGELOG
*********

`v1.3.3`_ (2019-12-xx)
`v1.3.3`_ (2019-12-17)
======================
* Fix 'attribute' multi-role token (axis and kind test)
* Fixes for issues #13 and #14

`v1.3.2`_ (2019-12-10)
======================
Expand Down
2 changes: 1 addition & 1 deletion elementpath/xpath_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get_path(self, item):
elif isinstance(item, TypedAttribute):
path.append('@%s' % item[0][0])
item = self._elem
elif isinstance(item, TypedElement):
if isinstance(item, TypedElement):
item = item[0]

while True:
Expand Down
2 changes: 1 addition & 1 deletion publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publiccodeYmlVersion: '0.2'
name: elementpath
url: 'https://github.com/sissaschool/elementpath'
landingURL: 'https://github.com/sissaschool/elementpath'
releaseDate: '2019-12-xx'
releaseDate: '2019-12-17'
softwareVersion: v1.3.3
developmentStatus: stable
platforms:
Expand Down

0 comments on commit e635202

Please sign in to comment.