Skip to content

Commit

Permalink
Merge pull request #467 from laike9m/laike9m-patch
Browse files Browse the repository at this point in the history
Removed unnecessary str() conversion.
  • Loading branch information
burnash authored Mar 11, 2018
2 parents bca295a + 71ca35e commit a6fefba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gspread/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def wid_to_gid(wid):
"""Calculate gid of a worksheet from its wid."""
widval = wid[1:] if len(wid) > 3 else wid
xorval = 474 if len(wid) > 3 else 31578
return str(int(str(widval), 36) ^ xorval)
return str(int(widval, 36) ^ xorval)


if __name__ == '__main__':
Expand Down

0 comments on commit a6fefba

Please sign in to comment.