[9/9] gen_gl_wrappers: remove unused imports

Submitted by Konstantin Kharlamov on March 23, 2019, 11:52 p.m.

Details

Message ID 20190323235203.30143-10-Hi-Angel@yandex.ru
State New
Headers show
Series "Fix some of LGTM warnings" ( rev: 2 1 ) in X.org

Not browsing as part of any series.

Commit Message

Konstantin Kharlamov March 23, 2019, 11:52 p.m.
Fixes LGTM warnings:
    * Import of 'cProfile' is not used.
    * Import of 'pdb' is not used.
    * Import of 'string' is not used.
    * Import of 'time' is not used.

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
---
 hw/xwin/glx/gen_gl_wrappers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/hw/xwin/glx/gen_gl_wrappers.py b/hw/xwin/glx/gen_gl_wrappers.py
index b9e8dda75..256f2d752 100755
--- a/hw/xwin/glx/gen_gl_wrappers.py
+++ b/hw/xwin/glx/gen_gl_wrappers.py
@@ -24,7 +24,7 @@ 
 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 # MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
 
-import sys, time, pdb, string, cProfile
+import sys
 from reg import *
 
 # Default input / log files

Comments

On 23/03/2019 23:52, Konstantin Kharlamov wrote:
> Fixes LGTM warnings:
>      * Import of 'cProfile' is not used.
>      * Import of 'pdb' is not used.
>      * Import of 'string' is not used.
>      * Import of 'time' is not used.
> 
> Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
> ---
>   hw/xwin/glx/gen_gl_wrappers.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/xwin/glx/gen_gl_wrappers.py b/hw/xwin/glx/gen_gl_wrappers.py
> index b9e8dda75..256f2d752 100755
> --- a/hw/xwin/glx/gen_gl_wrappers.py
> +++ b/hw/xwin/glx/gen_gl_wrappers.py
> @@ -24,7 +24,7 @@
>   # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
>   # MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
>   
> -import sys, time, pdb, string, cProfile
> +import sys
>   from reg import *
>   
>   # Default input / log files

Thanks!


Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
Thanks for R-b!

I don't have write-access, could please someone push the series?

В Пн, апр 1, 2019 at 20:10, Jon Turney 
<jon.turney@dronecode.org.uk> написал:
> On 23/03/2019 23:52, Konstantin Kharlamov wrote:
>> Fixes LGTM warnings:
>>      * Import of 'cProfile' is not used.
>>      * Import of 'pdb' is not used.
>>      * Import of 'string' is not used.
>>      * Import of 'time' is not used.
>> 
>> Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
>> ---
>>   hw/xwin/glx/gen_gl_wrappers.py | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/hw/xwin/glx/gen_gl_wrappers.py 
>> b/hw/xwin/glx/gen_gl_wrappers.py
>> index b9e8dda75..256f2d752 100755
>> --- a/hw/xwin/glx/gen_gl_wrappers.py
>> +++ b/hw/xwin/glx/gen_gl_wrappers.py
>> @@ -24,7 +24,7 @@
>>   # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
>>   # MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
>>   -import sys, time, pdb, string, cProfile
>> +import sys
>>   from reg import *
>>     # Default input / log files
> 
> Thanks!
> 
> 
> Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
>