Skip to content

Commit 2202cff

Browse files
committed
Replace unused main() function with __main__ module
1 parent af154fd commit 2202cff

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

pygeodiff/__main__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
:copyright: (c) 2026 Lutra Consulting Ltd.
4+
:license: MIT, see LICENSE for more details.
5+
"""
6+
7+
from pygeodiff import GeoDiff
8+
9+
10+
geodiff = GeoDiff()
11+
print("pygeodiff " + geodiff.version())

pygeodiff/main.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,3 @@ def create_wkb_from_gpkg_header(self, geometry):
469469
"""
470470
self._lazy_load()
471471
return self.clib.create_wkb_from_gpkg_header(self.context, geometry)
472-
473-
474-
def main():
475-
diff_lib = GeoDiff()
476-
print("pygeodiff " + diff_lib.version())

0 commit comments

Comments
 (0)