diff options
| author | Lubomír Sedlář <lsedlar@redhat.com> | 2020-01-08 09:36:55 +0100 |
|---|---|---|
| committer | Lubomír Sedlář <lsedlar@redhat.com> | 2020-02-13 14:25:45 +0100 |
| commit | 7729239951b5561f5bb5c2d5152ff76833b11826 (patch) | |
| tree | 646e2a5385a2dddc8cf06656a682ef03a9e314c7 /gitdb/test/lib.py | |
| parent | 43e16318e9ab95f146e230afe0a7cbdc848473fe (diff) | |
| download | gitdb-7729239951b5561f5bb5c2d5152ff76833b11826.tar.gz | |
Fix deprecated calls for Python 3.9
The array methods fromstring/tostring have been deprecated since Python
3.2. Python 3.9 removes them completely.
This was discovered when trying to build gitdb package for Fedora 33.
https://bugzilla.redhat.com/show_bug.cgi?id=1788660
Diffstat (limited to 'gitdb/test/lib.py')
| -rw-r--r-- | gitdb/test/lib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitdb/test/lib.py b/gitdb/test/lib.py index ab1842d..42b9ddc 100644 --- a/gitdb/test/lib.py +++ b/gitdb/test/lib.py @@ -157,7 +157,7 @@ def make_bytes(size_in_bytes, randomize=False): random.shuffle(producer) # END randomize a = array('i', producer) - return a.tostring() + return a.tobytes() def make_object(type, data): |
