mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
fix double free bug, add logging, update to python 3.14
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import bisect
|
||||
import hashlib
|
||||
import math
|
||||
import logging
|
||||
import random
|
||||
from collections import deque
|
||||
from dataclasses import dataclass, field, fields
|
||||
@@ -285,6 +286,7 @@ def test_encodings(file_path):
|
||||
continue
|
||||
return final_encoding
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class TJAParser:
|
||||
"""Parse a TJA file and extract metadata and data.
|
||||
@@ -318,6 +320,7 @@ class TJAParser:
|
||||
|
||||
self.metadata = TJAMetadata()
|
||||
self.ex_data = TJAEXData()
|
||||
logger.debug(f"Parsing TJA file: {self.file_path}")
|
||||
self.get_metadata()
|
||||
|
||||
self.distance = distance
|
||||
|
||||
Reference in New Issue
Block a user