Base Model für CITT erstellt, PTM Dortmund ergänzt, Tests hinzugefügt
This commit is contained in:
12
src/paveit/helper/filehandling.py
Normal file
12
src/paveit/helper/filehandling.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import logging
|
||||
from io import BytesIO
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def read_file_to_bytesio(filename: str):
|
||||
|
||||
with open(filename, "rb") as fh:
|
||||
buf = BytesIO(fh.read())
|
||||
|
||||
return buf
|
||||
Reference in New Issue
Block a user