Skip to content

Commit

Permalink
🎨 3.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
AirportR committed Dec 12, 2023
1 parent 42dfade commit 24c304b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions utils/cleaner.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import asyncio
import importlib
import os
import re
import sys
from typing import Union, List
import socket

import yaml
from loguru import logger

try:
import re2

remodule = re2
import re2 as re
remodule = re
except ImportError:
import re
remodule = re


Expand Down Expand Up @@ -406,7 +404,8 @@ def __init__(self, _config, _config2: Union[str, bytes] = None):
if not isinstance(self.yaml, dict):
self.yaml = {}

def notag(self, _config: Union[bytes, str]):
@staticmethod
def notag(_config: Union[bytes, str]):
"""
去除制表符,yaml反序列化不允许制表符出现在标量以外的地方
"""
Expand Down

0 comments on commit 24c304b

Please sign in to comment.