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-22 02:23:53 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
fc7d152dcafe3274aeb35d9c2f7599300ec8489e
dragonpilot/selfdrive/loggerd/tools/mark_unuploaded.py

9 lines
215 B
Python
Raw Normal View History

mark unuploaded
2020-04-21 11:11:43 -07:00
#!/usr/bin/env python3
import sys
from common.xattr import removexattr
from selfdrive.loggerd.uploader import UPLOAD_ATTR_NAME
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}")
mark unuploaded
2020-04-21 11:11:43 -07:00
removexattr(fn, UPLOAD_ATTR_NAME)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 142ms 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