Title: auth.py uses bytearray.tostring, which doesn't seem to exist · Issue #37 · google/gdata-python-client · GitHub
Open Graph Title: auth.py uses bytearray.tostring, which doesn't seem to exist · Issue #37 · google/gdata-python-client
X Title: auth.py uses bytearray.tostring, which doesn't seem to exist · Issue #37 · google/gdata-python-client
Description: auth.py uses tostring in exactly 1 place, which causes the following test to fail for me: ERROR: testSecureAuthSubGetAuthHeader (gdata_tests.auth_test.TokenClassesTest) --------------------------------------------------------------------...
Open Graph Description: auth.py uses tostring in exactly 1 place, which causes the following test to fail for me: ERROR: testSecureAuthSubGetAuthHeader (gdata_tests.auth_test.TokenClassesTest) ----------------------------...
X Description: auth.py uses tostring in exactly 1 place, which causes the following test to fail for me: ERROR: testSecureAuthSubGetAuthHeader (gdata_tests.auth_test.TokenClassesTest) ----------------------------...
Opengraph URL: https://github.com/google/gdata-python-client/issues/37
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"auth.py uses bytearray.tostring, which doesn't seem to exist","articleBody":"`auth.py` uses `tostring` in exactly 1 place, which causes the following test to fail for me:\n\n```\nERROR: testSecureAuthSubGetAuthHeader (gdata_tests.auth_test.TokenClassesTest)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/Users/ccalabro/code/python/gdata-python-client/tests/gdata_tests/auth_test.py\", line 514, in testSecureAuthSubGetAuthHeader\n auth_header = token.GetAuthHeader('GET', url)\n File \"/Library/Python/2.7/site-packages/gdata/auth.py\", line 943, in GetAuthHeader\n sig = encodestring(self.rsa_key.hashAndSign(data).tostring()).rstrip()\nAttributeError: 'bytearray' object has no attribute 'tostring'\n```\n\nThe output of `hashAndSign` is a `bytearray` (for me it is anyway, is it not for the author?), which doesn't have a `tostring` method, at least, it doesn't in python 2.7.1, which `INSTALL.txt` claims this project supports. Actually, I can't find any version of python where `bytearray` has a `tostring` method. Why not just use `str(self.rsa_key.hashAndSign(data))` instead?\nI believe this bug was introduced by commit 3c85d330c55dd1c758515b9c0a69cdf7f11c2728.\n","author":{"url":"https://github.com/trinarytree","@type":"Person","name":"trinarytree"},"datePublished":"2016-01-01T22:59:12Z","url":"https://github.com/google/gdata-python-client/issues/37"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d46b6808-d7b2-86a2-9f98-3ed8c5e8d4ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB30:31E99C:11B9E19:17B0D55:6B011D53 |
| html-safe-nonce | 51cae10e08d3b9bac907f1f2469f9fc89b583a2fc459d24c4f429cd6e6af7fc5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjMwOjMxRTk5QzoxMUI5RTE5OjE3QjBENTU6NkIwMTFENTMiLCJ2aXNpdG9yX2lkIjoiMzUwMzIwMjkwMTU0OTk4MTAxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 45926bd894f369746c3e709352da4246ebdca178522cd13eb6e0932aa3a669c5 |
| hovercard-subject-tag | issue:124565730 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/gdata-python-client/37/issue_layout |
| twitter:image | https://opengraph.githubassets.com/017e4fa5a424fbb81ca8199943ac9a94b266a002b19e4b7005962d3571e5a8e2/google/gdata-python-client/issues/37 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/017e4fa5a424fbb81ca8199943ac9a94b266a002b19e4b7005962d3571e5a8e2/google/gdata-python-client/issues/37 |
| og:image:alt | auth.py uses tostring in exactly 1 place, which causes the following test to fail for me: ERROR: testSecureAuthSubGetAuthHeader (gdata_tests.auth_test.TokenClassesTest) ----------------------------... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trinarytree |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/google/gdata-python-client git https://github.com/google/gdata-python-client.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 28202851 |
| octolytics-dimension-repository_nwo | google/gdata-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 28202851 |
| octolytics-dimension-repository_network_root_nwo | google/gdata-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width