Re: gnulib-tool.py: Use absolute imports consistently.

2024-04-23 Thread Collin Funk
Hi Bruno, On 4/23/24 8:37 AM, Bruno Haible wrote: > I also checked the effect on the warnings in Eclipse: No new warnings, > and 1 existing "unused import" warning is fixed. > > The patch is OK to push. Done. Thanks! Collin

Re: gnulib-tool.py: Use absolute imports consistently.

2024-04-23 Thread Bruno Haible
Hi Collin, > > OK, patch welcome. I assume that when Dmitry used this style of assignments, > > the Python 2.7 / 3.0 imports were not so well developed as they are today. > > Here is a patch that removes all the module-specific variables and > imports the functions directly. The patch looks good

Re: gnulib-tool.py: Use absolute imports consistently.

2024-04-22 Thread Collin Funk
Hi Bruno, On 4/22/24 7:33 AM, Bruno Haible wrote: > OK, patch welcome. I assume that when Dmitry used this style of assignments, > the Python 2.7 / 3.0 imports were not so well developed as they are today. Here is a patch that removes all the module-specific variables and imports the functions di

Re: gnulib-tool.py: Use absolute imports consistently.

2024-04-22 Thread Bruno Haible
Hi Collin, > I want to make the imports and use of functions from other modules > consistent. This patch makes all files use absolute imports like > main.py. So this: > >from pygnulib.GLEmiter import GLEmiter > > instead of: > >from .GLEmiter import GLEmiter Consistency is not a good e

gnulib-tool.py: Use absolute imports consistently.

2024-04-21 Thread Collin Funk
strange not too. :) Any disagreement with those changes? CollinFrom 740b31905915daa3bab5e7cfbd8347ea9f35ef3b Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sun, 21 Apr 2024 16:58:26 -0700 Subject: [PATCH] gnulib-tool.py: Use absolute imports consistently. * pygnulib/*.py: Update imports. --- ChangeLog