twisted / twisted/twisted

twisted.python.deprecate.deprecated gets the name of methods wrong

Open
#4,804 21 comments 0 reactions 1 assignee View on GitHub

@cyli is already working on this.

Since Jun 27, 2022.

bug core new priority-normal
Dominant language
Python
Stars
6k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
10

Description

glyph's avatar @glyph reported
Trac ID trac#4804
Type defect
Created 2011-01-14 22:02:26Z
Branch https://github.com/twisted/twisted/tree/deprecated-instance-methods-4804-2

If you deprecate a method x on a class Y in the module z, twisted.python.deprecate.deprecated thinks that the FQPN of the thing that it's decorating is z.x and reports it as such, not reporting the fairly interesting detail of the class Y.

It should get this right.

Attachments:

Searchable metadata
trac-id__4804 4804
type__defect defect
reporter__glyph glyph
priority__normal normal
milestone__ 
branch__branches_deprecated_instance_methods_4804_2 branches/deprecated-instance-methods-4804-2
branch_author__cyli cyli
status__new new
resolution__ 
component__core core
keywords__ 
time__1295042546000000 1295042546000000
changetime__1417552788670215 1417552788670215
version__None None
owner__cyli cyli

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.