Logo
Explore Help
Register Sign In
sadmen
/
dragonpilot
mirror of https://github.com/dragonpilot-community/dragonpilot.git
1
0
Fork
You've already forked dragonpilot
0
Code Issues 6 Packages Projects Releases Wiki Activity
dragonpilot - 基於 openpilot 的開源駕駛輔助系統
8254 Commits
42 Branches
64 Tags
7.0 GiB
Tree: 08b4cff484
dragonpilot/selfdrive/loggerd/tools/mark_unuploaded.py

9 lines
191 B
Raw Normal View History Unescape Escape

mark unuploaded
5 years ago
#!/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
3 years ago
import os
mark unuploaded
5 years ago
import sys
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>
4 years ago
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
3 years ago
os.removexattr(fn, UPLOAD_ATTR_NAME)
Powered by Gitea Version: 1.17.1 Page: 177ms Template : 3ms
English
Bahasa Indonesia Deutsch English Español Français Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Српски Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Website