Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
python-gwyfile
Fix_depreciated_fromstring_warning.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Fix_depreciated_fromstring_warning.patch of Package python-gwyfile
diff -ruN a/gwyfile/objects.py b/gwyfile/objects.py --- a/gwyfile/objects.py 2017-02-20 02:36:19.000000000 +0700 +++ b/gwyfile/objects.py 2020-08-16 16:39:00.455203869 +0700 @@ -348,7 +348,7 @@ } dtype = typelookup[typecode] pos, endpos = endpos, endpos + dtype.itemsize * numitems - data = np.fromstring(buf[pos:endpos], dtype=dtype) + data = np.frombuffer(buf[pos:endpos], dtype=dtype) elif typecode == 'S': numitems = struct.unpack('<I', buf[pos:pos + 4])[0] endpos += 4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor