nextgis / quickmapservices

QGIS plugin to find and add map services to a project in one click
http://plugins.qgis.org/plugins/quick_map_services/
GNU General Public License v2.0
170 stars 49 forks source link

Fix syntax warning #236

Closed GeoSander closed 2 years ago

GeoSander commented 2 years ago

Using QGIS 3.22.9-Białowieża (LTR) with Python 3.9.5, I am seeing the following warnings in the QGIS Log Messages window (Python warning tab):

2022-08-04T23:25:05     WARNING    warning:C:\Users/admin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\py_tiled_layer\tiles.py:184: SyntaxWarning: "is not" with a literal. Did you mean "!="?
              if (x & mask) is not 0:
             ...

I assume that this can be changed safely?

drnextgis commented 2 years ago

Thanks!