fix: logcat-server.py SyntaxError — global declaration after use

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude
2026-04-05 05:12:28 +00:00
parent 10eb19cd24
commit 64566e9acb

View File

@@ -161,7 +161,6 @@ def main():
parser.add_argument("--unfiltered", action="store_true", help="Capture all logcat, filter in Python") parser.add_argument("--unfiltered", action="store_true", help="Capture all logcat, filter in Python")
args = parser.parse_args() args = parser.parse_args()
log_buffer.maxlen # already set at top, but update if needed
global log_buffer global log_buffer
log_buffer = deque(maxlen=args.lines) log_buffer = deque(maxlen=args.lines)