[edk2-devel] [PATCH 3/3] BaseTools: Drop check for distutils.utils

Cole posted 3 patches 4 years, 6 months ago
[edk2-devel] [PATCH 3/3] BaseTools: Drop check for distutils.utils
Posted by Cole 4 years, 6 months ago
distutils.utils is no longer used anywhere, so this check can
be dropped.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
---
 BaseTools/Tests/RunTests.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/BaseTools/Tests/RunTests.py b/BaseTools/Tests/RunTests.py
index 81af736cd8..934683a446 100644
--- a/BaseTools/Tests/RunTests.py
+++ b/BaseTools/Tests/RunTests.py
@@ -13,13 +13,6 @@ import os
 import sys

 import unittest

 

-try:

-    import distutils.util

-except ModuleNotFoundError:

-    sys.exit('''

-Python reported: "No module named 'distutils.util"

-''')

-

 import TestTools

 

 def GetCTestSuite():

-- 
2.31.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#78146): https://edk2.groups.io/g/devel/message/78146
Mute This Topic: https://groups.io/mt/84409131/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH 3/3] BaseTools: Drop check for distutils.utils
Posted by Yuwei Chen 4 years, 6 months ago
This patch looks good to me.

Reviewed-by: Yuwei Chen<yuwei.chen@intel.com>

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Cole
> Sent: Saturday, July 24, 2021 4:02 AM
> To: devel@edk2.groups.io
> Cc: Cole Robinson <crobinso@redhat.com>
> Subject: [edk2-devel] [PATCH 3/3] BaseTools: Drop check for distutils.utils
> 
> distutils.utils is no longer used anywhere, so this check can be dropped.
> 
> Signed-off-by: Cole Robinson <crobinso@redhat.com>
> ---
>  BaseTools/Tests/RunTests.py | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/BaseTools/Tests/RunTests.py b/BaseTools/Tests/RunTests.py
> index 81af736cd8..934683a446 100644
> --- a/BaseTools/Tests/RunTests.py
> +++ b/BaseTools/Tests/RunTests.py
> @@ -13,13 +13,6 @@ import os
>  import sys
>  import unittest
> 
> -try:
> -    import distutils.util
> -except ModuleNotFoundError:
> -    sys.exit('''
> -Python reported: "No module named 'distutils.util"
> -''')
> -
>  import TestTools
> 
>  def GetCTestSuite():
> --
> 2.31.1
> 
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#78164): https://edk2.groups.io/g/devel/message/78164
Mute This Topic: https://groups.io/mt/84409131/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-