comparison weather_server/logfile.py @ 39:b77c8e7d2742

Use zoneinfo rather than pytz.
author Paul Fisher <paul@pfish.zone>
date Tue, 01 Apr 2025 15:54:21 -0400
parents 9bc3687e1e5e
children
comparison
equal deleted inserted replaced
38:d5a18ecebf47 39:b77c8e7d2742
1 """The part which handles writing things out and reading things in from CSV. 1 """The part which handles writing things out and reading things in from CSV.
2 """ 2 """
3 3
4 import attr
5 import collections 4 import collections
6 import concurrent.futures as futures 5 import concurrent.futures as futures
7 import contextlib 6 import contextlib
8 import fcntl 7 import fcntl
9 import os 8 import os
10 import queue 9 import queue
11 import threading 10 import threading
12 import typing as t 11 import typing as t
13 12
13 import attr
14 import bson 14 import bson
15 15
16 from . import common 16 from . import common
17
18 17
19 # The number of entries to keep in memory without reading from disk. 18 # The number of entries to keep in memory without reading from disk.
20 CACHED_ENTRIES = 16384 19 CACHED_ENTRIES = 16384
21 20
22 # How many entries to read before creating a new index entry. 21 # How many entries to read before creating a new index entry.