-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also store reason of deprecation, if any, in the cache
This is done through some mangling of the deprecated name. Based on the fact that a function name cannot contain ':', we use it as a delimiter between function name and reason. So a deprecated name without ':' is just a name, and a deprecated name with at least a ':' is a name followed by the reason why it's deprecated. Note that this storage does *not* introduce a new format version ;-) Fix #41
- Loading branch information
1 parent
00b480b
commit bea2138
Showing
3 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ | |
def foo(): pass | ||
|
||
def bar(): pass | ||
|
||
@deprecated("because it's too old") | ||
def foobar(): pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters