Skip to content

Commit

Permalink
Fix issue #13
Browse files Browse the repository at this point in the history
  • Loading branch information
brunato committed Dec 12, 2019
1 parent af3a65f commit 1e25c91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elementpath/xpath1_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,12 +1071,12 @@ def evaluate(self, context=None):
for k in range(len(self)))


@method(function('string-length', nargs=1))
@method(function('string-length', nargs=(0, 1)))
def evaluate(self, context=None):
return len(self.get_argument(context, default_to_context=True, default='', cls=string_base_type))


@method(function('normalize-space', nargs=1))
@method(function('normalize-space', nargs=(0, 1)))
def evaluate(self, context=None):
if self.parser.version == '1.0':
arg = self.string_value(self.get_argument(context, default_to_context=True, default=''))
Expand Down

0 comments on commit 1e25c91

Please sign in to comment.