Skip to content

Commit

Permalink
Merge pull request #626 from bsipocz/BUG_allow_stringIO
Browse files Browse the repository at this point in the history
BUG: fix StringIO uploads
  • Loading branch information
msdemlei authored Dec 4, 2024
2 parents e03f16b + d5df951 commit ac3f836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyvo/dal/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import re
import requests
from collections.abc import Mapping
from io import BytesIO
from io import BytesIO, StringIO

import collections

Expand Down Expand Up @@ -1042,7 +1042,7 @@ def fileobj(self):

return fileobj

elif isinstance(self._content, BytesIO):
elif isinstance(self._content, (BytesIO, StringIO)):
return self._content

elif isinstance(self._content, DALResults):
Expand Down

0 comments on commit ac3f836

Please sign in to comment.