some changes

This commit is contained in:
shenjack 2023-07-24 12:22:59 +08:00
parent 640cc27e34
commit 253e3b62fb
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 3 additions and 3 deletions

View File

@ -591,7 +591,7 @@ pub mod ship {
impl RawShip {
#[inline]
pub fn from_file(path: String) -> Option<RawShip> {
let ship_file = fs::read_to_string(path); // for encoding error
let ship_file = fs::read_to_string(path); // for encoding error
if let Err(e) = ship_file {
println!("ERROR!\n{:?}\n----------", e);
return None;

View File

@ -12,8 +12,8 @@ import logging
import traceback
from pathlib import Path
from defusedxml.ElementTree import parse
from xml.etree.ElementTree import Element, ElementTree
# from defusedxml.ElementTree import parse
# from xml.etree.ElementTree import Element, ElementTree
from typing import List, TYPE_CHECKING, Union, Dict, Optional, Generator, Tuple
from pyglet.math import Vec4