diff --git a/rdflib/plugins/parsers/pyRdfa/host/html5.py b/rdflib/plugins/parsers/pyRdfa/host/html5.py index 7420c1b43..9f08d8bc9 100644 --- a/rdflib/plugins/parsers/pyRdfa/host/html5.py +++ b/rdflib/plugins/parsers/pyRdfa/host/html5.py @@ -82,7 +82,7 @@ def _format_test(string) : # Now come the special cases:-( # Check first for the duration stuff, that is the nastiest. - if len(string) > 2 and string[0] == 'P' or (string [0] == '-' and string[1] == 'P') : + if len(string) > 2 and (string[0] == 'P' or (string[0] == '-' and string[1] == 'P')) : # this is meant to be a duration type # first of all, get rid of the leading '-' and check again if string[0] == '-' :