N4S4 / synology-api

A Python wrapper around Synology API
MIT License
368 stars 138 forks source link

Fixing String comparison with literal #72

Closed adamoutler closed 2 years ago

adamoutler commented 2 years ago

This "is" doesn't flow well with my syntax checker. "==" is more appropriate and fixes the problem. synology-api\synology_api\auth.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="? elif method is 'post': synology-api\synology_api\auth.py:118: SyntaxWarning: "is" with a literal. Did you mean "=="? elif method is 'post':

adamoutler commented 2 years ago

There is also a standard .gitignore in this pull request. It will prevent pushing of invalid files in the future.