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

Fix syntax warnings #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix syntax warnings #48

wants to merge 3 commits into from

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