Skip to content

AMBARI-26520 : Fix deprecated usage string.uppercase#4029

Merged
JiaLiangC merged 1 commit intoapache:trunkfrom
harshith-21:AMBARI-26520
Jul 1, 2025
Merged

AMBARI-26520 : Fix deprecated usage string.uppercase#4029
JiaLiangC merged 1 commit intoapache:trunkfrom
harshith-21:AMBARI-26520

Conversation

@harshith-21
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

AMBARI-26520 : Fix deprecated usage string.uppercase

How was this patch tested?

Python 2.7.5 (default, Nov 14 2023, 16:14:06)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import string
>>> string.ascii_uppercase
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>> string.uppercase
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
Python 3.6.8 (default, Nov 14 2023, 16:29:52)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import string
>>>
>>> import string
>>> string.ascii_uppercase
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>> string.uppercase
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'string' has no attribute 'uppercase'
>>>
 
Python 3.11.11 (main, Dec 12 2024, 16:28:23) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import string
>>> string.ascii_uppercase
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>>
>>> string.uppercase
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'string' has no attribute 'uppercase'
>>>
>>> 

Copy link
Copy Markdown
Contributor

@prabhjyotsingh prabhjyotsingh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@JiaLiangC JiaLiangC merged commit aba3023 into apache:trunk Jul 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants