Logo
Explore Help
Register Sign In
mawei/dragonpilot
1
0
Fork 0
You've already forked dragonpilot
mirror of https://github.com/dragonpilot/dragonpilot.git synced 2026-02-23 01:53:52 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
1e3bb5be7ec3cd00a2ff8c8a7bc02b8efbf1cddc
dragonpilot/system/loggerd/tools/mark_unuploaded.py

9 lines
188 B
Python
Raw Normal View History

mark unuploaded
2020-04-21 11:11:43 -07:00
#!/usr/bin/env python3
common: replace custom xattr implementation with os module's (#24448) * use os module's xattr function * fix that * handle in helper
2022-05-15 17:13:50 -07:00
import os
mark unuploaded
2020-04-21 11:11:43 -07:00
import sys
loggerd: move to system/ (#27534)
2023-03-08 11:20:49 -08:00
from system.loggerd.uploader import UPLOAD_ATTR_NAME
mark unuploaded
2020-04-21 11:11:43 -07:00
for fn in sys.argv[1:]:
Convert format strings strings to f-strings (#23241) * Convert all text strings to f-strings Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+. Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files. F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale * revert pyextra changes * revert ublox.py Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-12-16 14:58:17 +01:00
print(f"unmarking {fn}")
common: replace custom xattr implementation with os module's (#24448) * use os module's xattr function * fix that * handle in helper
2022-05-15 17:13:50 -07:00
os.removexattr(fn, UPLOAD_ATTR_NAME)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 231ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API