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

Fix syntax warnings#48

Open
bluca wants to merge 3 commits into
Azure:masterfrom
bluca:warnings
Open

Fix syntax warnings#48
bluca wants to merge 3 commits into
Azure:masterfrom
bluca:warnings

Conversation

@bluca

@bluca bluca commented Feb 28, 2020

Copy link
Copy Markdown
Member

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

bluca commented May 4, 2020

Copy link
Copy Markdown
Member Author

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