X7ROOT File Manager
Current Path:
/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/toml
opt
/
alt
/
python27
/
lib
/
python2.7
/
site-packages
/
pip
/
_vendor
/
toml
/
??
..
??
__init__.py
(747 B)
??
__init__.pyc
(895 B)
??
common.py
(242 B)
??
common.pyc
(482 B)
??
decoder.py
(37.79 KB)
??
decoder.pyc
(30.03 KB)
??
encoder.py
(9.72 KB)
??
encoder.pyc
(13.77 KB)
??
ordered.py
(378 B)
??
ordered.pyc
(1.51 KB)
??
tz.py
(618 B)
??
tz.pyc
(1.83 KB)
Editing: tz.py
from datetime import tzinfo, timedelta class TomlTz(tzinfo): def __init__(self, toml_offset): if toml_offset == "Z": self._raw_offset = "+00:00" else: self._raw_offset = toml_offset self._sign = -1 if self._raw_offset[0] == '-' else 1 self._hours = int(self._raw_offset[1:3]) self._minutes = int(self._raw_offset[4:6]) def tzname(self, dt): return "UTC" + self._raw_offset def utcoffset(self, dt): return self._sign * timedelta(hours=self._hours, minutes=self._minutes) def dst(self, dt): return timedelta(0)
Upload File
Create Folder