mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Fix some coding style issues in python tests pointed out by black and flake8
This commit is contained in:
parent
207b8cb8a5
commit
5699b7b169
@ -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:
|
||||
|
@ -25,7 +25,6 @@ import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
from textwrap import dedent
|
||||
import unittest
|
||||
|
||||
import taptestrunner
|
||||
|
Loading…
Reference in New Issue
Block a user