mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
Byte compile all .py files from provided directories. This script is an
|
||||
@@ -6,8 +6,6 @@ alternative implementation of compileall.compile_dir written with
|
||||
cross-compilation in mind.
|
||||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import py_compile
|
||||
@@ -30,7 +28,7 @@ def compile_one(host_path, strip_root=None, verbose=False):
|
||||
if os.path.islink(host_path) or not os.path.isfile(host_path):
|
||||
return # only compile real files
|
||||
|
||||
if not re.match(r"^[_A-Za-z][_A-Za-z0-9]+\.py$",
|
||||
if not re.match(r"^[_A-Za-z][_A-Za-z0-9]*\.py$",
|
||||
os.path.basename(host_path)):
|
||||
return # only compile "importable" python modules
|
||||
|
||||
|
Reference in New Issue
Block a user