diff options
author | Aarni Koskela <akx@iki.fi> | 2023-01-19 10:43:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 10:43:08 +0200 |
commit | cf405e2836bbcc32aaeaa6b7a7cc7bbabe873019 (patch) | |
tree | c75005ebf3ac8b79a6058da9823331f7d3d3765e /babel/localtime/_unix.py | |
parent | 6e02940868a73cbcf3cc86077fc83c7cb21a4780 (diff) | |
parent | d14f9565c03ba10d493437784db439ca260ba69d (diff) | |
download | babel-cf405e2836bbcc32aaeaa6b7a7cc7bbabe873019.tar.gz |
Merge pull request #949 from python-babel/ruffify
Add ruff for linting
Diffstat (limited to 'babel/localtime/_unix.py')
-rw-r--r-- | babel/localtime/_unix.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/babel/localtime/_unix.py b/babel/localtime/_unix.py index 89b461a..eb81beb 100644 --- a/babel/localtime/_unix.py +++ b/babel/localtime/_unix.py @@ -1,14 +1,14 @@ +import datetime import os import re -import datetime - from babel.localtime._helpers import ( + _get_tzinfo, _get_tzinfo_from_file, _get_tzinfo_or_raise, - _get_tzinfo, ) + def _tz_from_env(tzenv: str) -> datetime.tzinfo: if tzenv[0] == ':': tzenv = tzenv[1:] |