[glib: 2/3] Fix some coding style issues in python tests pointed out by black and flake8
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] Fix some coding style issues in python tests pointed out by black and flake8
- Date: Tue, 28 Jun 2022 10:42:08 +0000 (UTC)
commit 5699b7b1691c15ac7eaafe71f6d08d649f75c046
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Thu Jun 23 18:41:31 2022 +0200
Fix some coding style issues in python tests pointed out by black and flake8
gio/tests/gengiotypefuncs.py | 4 ++--
gobject/tests/gobject-query.py | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gio/tests/gengiotypefuncs.py b/gio/tests/gengiotypefuncs.py
index ab99df66ae..ae25817f76 100644
--- a/gio/tests/gengiotypefuncs.py
+++ b/gio/tests/gengiotypefuncs.py
@@ -25,9 +25,9 @@ for filename in in_files:
with open(filename, "rb") as f:
for line in f:
line = line.rstrip(b"\n").rstrip(b"\r")
- match = re.search(br"\bg_[a-zA-Z0-9_]*_get_type\b", line)
+ match = re.search(rb"\bg_[a-zA-Z0-9_]*_get_type\b", line)
if match:
- func = match.group(0).decode('utf-8')
+ func = match.group(0).decode("utf-8")
if func not in funcs:
funcs.append(func)
if debug:
diff --git a/gobject/tests/gobject-query.py b/gobject/tests/gobject-query.py
index 9eba8bc848..094f37d3c3 100644
--- a/gobject/tests/gobject-query.py
+++ b/gobject/tests/gobject-query.py
@@ -25,7 +25,6 @@ import os
import shutil
import subprocess
import sys
-from textwrap import dedent
import unittest
import taptestrunner
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]