Skip to content

Commit

Permalink
remove unused files; r"" for regex strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholascar committed Oct 10, 2021
1 parent 5bb11c3 commit 9e077a0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 408 deletions.
206 changes: 0 additions & 206 deletions README_OLD.md

This file was deleted.

14 changes: 7 additions & 7 deletions owlrl/DatatypeHandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def dst(self, dt):

# noinspection PyPep8Naming
def _returnTimeZone(incoming_v):
"""Almost all time/date related methods require the extraction of an optional time zone information.
"""Almost all time/date related methods require the extraction of optional time zone information.
@param incoming_v: the time/date string
@return (v,timezone) tuple; 'v' is the input string with the timezone info cut off, 'timezone' is a L{_namelessTZ}
instance or None
Expand All @@ -82,7 +82,7 @@ def _returnTimeZone(incoming_v):
v = incoming_v[:-1]
tzone = _namelessTZ(0, 0)
else:
pattern = ".*(\+|-)([0-9][0-9]):([0-9][0-9])"
pattern = r".*(\+|-)([0-9][0-9]):([0-9][0-9])"
match = re.match(pattern, incoming_v)
if match is None:
v = incoming_v
Expand Down Expand Up @@ -347,7 +347,7 @@ def _strToDateTimeAndStamp(incoming_v, timezone_required=False):
# The microseconds should be handled here...
final_v = v
milliseconds = 0
milpattern = "(.*)(\.)([0-9]*)"
milpattern = r"(.*)(\.)([0-9]*)"
match = re.match(milpattern, v)
if match is not None:
# we have a millisecond portion...
Expand Down Expand Up @@ -401,7 +401,7 @@ def _strToTime(incoming_v):
# The microseconds should be handled here...
final_v = v
milliseconds = 0
milpattern = "(.*)(\.)([0-9]*)"
milpattern = r"(.*)(\.)([0-9]*)"
match = re.match(milpattern, v)
if match is not None:
# we have a millisecond portion...
Expand Down Expand Up @@ -538,12 +538,12 @@ def _strToXMLLiteral(v):

# language, NMTOKEN, NAME, etc #########################
# regular expression for a 'language' datatype
_re_language = "[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"
_re_language = r"[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*"


# regexp for NMTOKEN. It must be used with a re.U flag (the '(?U' regexp form did not work. It may depend on the
# locale...)
_re_NMTOKEN = "[\w:_.\-]+"
_re_NMTOKEN = r"[\w:_.\-]+"


# characters not permitted at a starting position for Name (otherwise Name is like NMTOKEN
Expand All @@ -552,7 +552,7 @@ def _strToXMLLiteral(v):

# regexp for NCName. It must be used with a re.U flag (the '(?U' regexp form did not work. It may depend on the
# locale...)
_re_NCName = "[\w_.\-]+"
_re_NCName = r"[\w_.\-]+"


# characters not permitted at a starting position for NCName
Expand Down
109 changes: 0 additions & 109 deletions owlrl/OWL.py

This file was deleted.

Loading

0 comments on commit 9e077a0

Please sign in to comment.