diff --git a/python/grass/.flake8 b/python/grass/.flake8 index a30a55d8a73..39d17847f48 100644 --- a/python/grass/.flake8 +++ b/python/grass/.flake8 @@ -4,11 +4,17 @@ ignore = W503, # line break before binary operator (Black) <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD ======= E722, # do not use bare 'except' >>>>>>> 7e8f036e2d (pythonlib: Remove star imports (#1546)) ======= >>>>>>> 7c10386e82 (g.proj: fix reading input WKT (#1582)) +======= +======= + E722, # do not use bare 'except' +>>>>>>> 7e8f036e2d (pythonlib: Remove star imports (#1546)) +>>>>>>> 57aff3a06a (pythonlib: Remove star imports (#1546)) per-file-ignores = # C wrappers call libgis.G_gisinit before importing other modules. diff --git a/python/grass/gunittest/invoker.py b/python/grass/gunittest/invoker.py index afee771fa7c..3aa7bcc7212 100644 --- a/python/grass/gunittest/invoker.py +++ b/python/grass/gunittest/invoker.py @@ -218,10 +218,13 @@ def _run_test_module(self, module, results_dir, gisdbase, location, timeout): <<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD ======= >>>>>>> 6cf60c76a4 (wxpyimgview: explicit conversion to int (#2704)) ======= >>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704)) +======= +>>>>>>> 57aff3a06a (pythonlib: Remove star imports (#1546)) stdout = p.stdout stderr = p.stderr returncode = p.returncode @@ -262,6 +265,7 @@ def _run_test_module(self, module, results_dir, gisdbase, location, timeout): ======= stdout, stderr = p.communicate() returncode = p.returncode +<<<<<<< HEAD ======= >>>>>>> 6cf60c76a4 (wxpyimgview: explicit conversion to int (#2704)) encodings = [_get_encoding(), "utf8", "latin-1", "ascii"] @@ -269,6 +273,10 @@ def _run_test_module(self, module, results_dir, gisdbase, location, timeout): <<<<<<< HEAD >>>>>>> 3fce2ed438 (pythonlib: Remove star imports (#1546)) ======= +======= + encodings = [_get_encoding(), "utf8", "latin-1", "ascii"] + +>>>>>>> 57aff3a06a (pythonlib: Remove star imports (#1546)) >>>>>>> 7e8f036e2d (pythonlib: Remove star imports (#1546)) def try_decode(data, encodings): """Try to decode data (bytes) using one of encodings @@ -281,6 +289,7 @@ def try_decode(data, encodings): <<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD return decode(data, encoding=encoding) ======= @@ -295,6 +304,12 @@ def try_decode(data, encodings): ======= return decode(data, encoding=encoding) >>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704)) +======= + return decode(data, encoding=encoding) +======= + return decode(stdout, encoding=encoding) +>>>>>>> 7e8f036e2d (pythonlib: Remove star imports (#1546)) +>>>>>>> 57aff3a06a (pythonlib: Remove star imports (#1546)) except UnicodeError: pass if isinstance(data, bytes): diff --git a/python/grass/temporal/c_libraries_interface.py b/python/grass/temporal/c_libraries_interface.py index f539800f28c..dc107e7c6d3 100644 --- a/python/grass/temporal/c_libraries_interface.py +++ b/python/grass/temporal/c_libraries_interface.py @@ -15,6 +15,7 @@ <<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD import sys from ctypes import CFUNCTYPE, POINTER, byref, c_int, c_void_p, cast ======= @@ -24,6 +25,8 @@ >>>>>>> 2bf163e4b3 (libpython: Save and load benchmark results (#1711)) ======= >>>>>>> dad8f82179 (wxpyimgview: explicit conversion to int (#2704)) +======= +>>>>>>> 95adae2f53 (pythonlib: Remove star imports (#1546)) <<<<<<< HEAD from ctypes import byref, cast, c_int, c_void_p, CFUNCTYPE, POINTER ======= @@ -47,7 +50,16 @@ ======= from ctypes import byref, cast, c_int, c_void_p, CFUNCTYPE, POINTER >>>>>>> 8422103f4c (wxpyimgview: explicit conversion to int (#2704)) +<<<<<<< HEAD >>>>>>> dad8f82179 (wxpyimgview: explicit conversion to int (#2704)) +======= +======= +from ctypes import byref, cast, c_int, c_void_p, CFUNCTYPE, POINTER +======= +from ctypes import byref, cast, c_char_p, c_int, c_void_p, CFUNCTYPE, POINTER +>>>>>>> 7e8f036e2d (pythonlib: Remove star imports (#1546)) +>>>>>>> 57aff3a06a (pythonlib: Remove star imports (#1546)) +>>>>>>> 95adae2f53 (pythonlib: Remove star imports (#1546)) from datetime import datetime from multiprocessing import Lock, Pipe, Process