Skip to content

Conversation

@garrettheel
Copy link
Contributor

No description provided.

@garrettheel garrettheel force-pushed the fix-py3-bytes branch 2 times, most recently from 91711c0 to 58434a6 Compare December 7, 2017 23:12
kms_mock = MagicMock()
kms_mock.encrypt = MagicMock(
return_value={'CiphertextBlob': 'encrypted'}
return_value={'CiphertextBlob': six.b('encrypted')}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for syx.b here, just prefix with b

PY2 = sys.version[0] == '2'


def ensure_str(str_or_bytes, encoding='utf-8'):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ensure_text is a better name for this
  • why not errors parameter here as well?

import datetime
import json

import six
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

six imported but unused


TOKEN_SKEW = 3
TIME_FORMAT = "%Y%m%dT%H%M%SZ"
PY2 = sys.version[0] == '2'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this constant is unused now

@ryan-lane ryan-lane merged commit e847c46 into master Dec 11, 2017
@ryan-lane ryan-lane deleted the fix-py3-bytes branch December 11, 2017 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants