Warn for raise with three compnents by nanjekyejoannah · Pull Request #14 · softdevteam/pygrate2

@nanjekyejoannah

bot added a commit that referenced this pull request

Nov 24, 2022

@bors

bors bot added a commit that referenced this pull request

Nov 29, 2022
16: Warn for specific thread module methods r=ltratt a=nanjekyejoannah

Dont merge until #13  and  #14 are merged, some helper code cuts across.

This replaces #15 

Threading module Notes

Python 2:

```
>>> from thread import get_ident
>>> from threading import get_ident
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name get_ident
>>> import threading
>>> from threading import _get_ident
>>>
```

Python 3:

```
>>> from threading import get_ident
>>> from thread import get_ident
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'thread'
>
```

**Note:**

There is no neutral way of porting

Co-authored-by: Joannah Nanjekye <jnanjekye@python.org>

bors bot added a commit that referenced this pull request

Feb 16, 2023
24: Warn for exception: move warning to ceval r=ltratt a=nanjekyejoannah

This replaces the old PR: #12
Moved the warning to ceval.

I removed the three component warning because it was committed in an earlier PR here: #14

Co-authored-by: Joannah Nanjekye <jnanjeky@unb.ca>