Skip to content
This repository was archived by the owner on Jul 14, 2023. It is now read-only.

Conversation

bluca
Copy link
Member

@bluca bluca commented Feb 28, 2020

No description provided.

Use == with literals instead of 'is'

azure/cosmosdb/table/common/_connection.py:82
  /build/azure-cosmos-table-python-1.0.5+git20191025/.pybuild/cpython3_3.8/build/azure/cosmosdb/table/common/_connection.py:82: SyntaxWarning: "is" with a literal. Did you mean "=="?
    self.protocol = self.protocol if parsed_url.scheme is '' else parsed_url.scheme

tests/table/test_table.py:387
  /build/azure-cosmos-table-python-1.0.5+git20191025/.pybuild/cpython3_3.8/build/tests/table/test_table.py:387: SyntaxWarning: "is" with a literal. Did you mean "=="?
    if os.name is "nt":

tests/table/test_table.py:389
  /build/azure-cosmos-table-python-1.0.5+git20191025/.pybuild/cpython3_3.8/build/tests/table/test_table.py:389: SyntaxWarning: "is" with a literal. Did you mean "=="?
    elif os.name is 'posix':
Add shim to keep backward compatibility with Python 3.1
@bluca
Copy link
Member Author

bluca commented May 4, 2020

ping

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant