Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ad960e

Browse files
changed ord() function
1 parent 4e4c25d commit 5ad960e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

srtm/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ def get_elevation_from_row_and_column(self, row, column):
379379

380380
#logging.debug('{0}, {1} -> {2}'.format(row, column, i))
381381

382-
byte_1 = ord(self.data[i * 2])
383-
byte_2 = ord(self.data[i * 2 + 1])
382+
byte_1 = ord(str(self.data[i * 2]))
383+
byte_2 = ord(str(self.data[i * 2 + 1]))
384384

385385
result = byte_1 * 256 + byte_2
386386

0 commit comments

Comments
 (0)