Skip to content

Commit 537cd70

Browse files
committed
str(bytes) does not yield the bytestring converted to a string, which is
really really sad.
1 parent b4b351f commit 537cd70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/alma/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def parse_frequency_support(frequency_support_str):
8989
Quantities representing the frequency range. It will ignore the resolution
9090
and polarizations.
9191
"""
92-
supports = str(frequency_support_str).split('U')
92+
supports = frequency_support_str.tostring().decode('ascii').split('U')
9393

9494
freq_ranges = [(float(sup[0]),
9595
float(sup[1].split(',')[0].strip(string.ascii_letters))) *

0 commit comments

Comments
 (0)