diff --git a/mythtv/bindings/python/MythTV/utility.py b/mythtv/bindings/python/MythTV/utility.py index a95350ba69e..277a2e8fbd7 100644 --- a/mythtv/bindings/python/MythTV/utility.py +++ b/mythtv/bindings/python/MythTV/utility.py @@ -473,12 +473,12 @@ class datetime( _pydatetime ): '(:(?P[0-9]{2}))?' '(?PZ|' '(?P[-+])' - '(?P[0-9]{1,2}?)' + '(?P[0-9]{1,2})' '(:)?' '(?P[0-9]{2})?' ')?') - class tzinfo( _pytzinfo): + class _tzinfo( _pytzinfo): def __init__(self, direc='+', hr=0, min=0): if direc == '-': hr = -1*int(hr) @@ -509,11 +509,11 @@ def fromIso(cls, isotime, sep='T'): dt.append(0) if match.group('tz'): if match.group('tz') == 'Z': - tz = cls.tzinfo() + tz = cls._tzinfo() elif match.group('tzmin'): - tz = cls.tzinfo(*match.group('tzdirec','tzhour','tzmin')) + tz = cls._tzinfo(*match.group('tzdirec','tzhour','tzmin')) else: - tz = cls.tzinfo(*match.group('tzdirec','tzhour')) + tz = cls._tzinfo(*match.group('tzdirec','tzhour')) dt.append(0) dt.append(tz) return cls(*dt)