Skip to content

Commit

Permalink
Get ready for release 5.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Sep 12, 2021
1 parent 74fdd65 commit f64acfe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
5.0.12 2021-09-11
=================

* Add Python version 3.9.7
* Document unmarshal beter
* Correct stack information for IMPORT_NAME
* Fix bug in code type handling where bytes were showing up as strings
* More type annotations in master branch. Create more older variations without annotations

5.0.11 2021-07-05
================

Expand Down
4 changes: 2 additions & 2 deletions xdis/unmarshal.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def long(n):
}


def compat_str(s):
def compat_str(s: str) -> str:
"""
This handles working with strings between Python2 and Python3.
"""
Expand Down Expand Up @@ -300,7 +300,7 @@ def t_binary_complex(self, save_ref, bytes_for_s=False):
return self.r_ref(complex(real, imag), save_ref)

# Note: could mean bytes in Python3 processing Python2 bytecode
def t_string(self, save_ref, bytes_for_s):
def t_string(self, save_ref, bytes_for_s: bool):
"""
In Python3 this is a bytes types. In Python2 it is a string.
`bytes_for_s` distinguishes what we need.
Expand Down
2 changes: 1 addition & 1 deletion xdis/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# well as importing into Python. That's why there is no
# space around "=" below.
# fmt: off
__version__="5.0.11" # noqa
__version__="5.0.12" # noqa

0 comments on commit f64acfe

Please sign in to comment.