Skip to content

Commit

Permalink
grass.pygrass: Replace io.OpenWrapper by open (OSGeo#3018)
Browse files Browse the repository at this point in the history
io.OpenWrapper() was removed from Python 3.12
  • Loading branch information
pesekon2 authored and neteler committed Nov 7, 2023
1 parent 297706c commit 3c0c380
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/grass/pygrass/shell/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
@author: pietro
"""
import io


def raw_figure(figpath):
with io.OpenWrapper(figpath, mode="rb") as data:
with open(figpath, mode="rb") as data:
res = data.read()
return res

0 comments on commit 3c0c380

Please sign in to comment.