|
15 | 15 | import tempfile |
16 | 16 | import concurrent.futures |
17 | 17 | import os |
18 | | -from pygeodiff import ( |
19 | | - GeoDiff, |
20 | | - GeoDiffLibError, |
21 | | - GeoDiffLibConflictError, |
22 | | - GeoDiffLibUnsupportedChangeError, |
23 | | - GeoDiffLibVersionError, |
24 | | -) |
25 | 18 |
|
26 | 19 | from .common import UPLOAD_CHUNK_SIZE, ClientError |
27 | | -from .merginproject import MerginProject |
| 20 | +from .merginproject import MerginProject, pygeodiff |
28 | 21 | from .editor import filter_changes |
29 | 22 | from .utils import cleanup_tmp_dir |
30 | 23 |
|
@@ -338,12 +331,12 @@ def _geodiff_changes_count(mp: MerginProject, diff_rel_path: str): |
338 | 331 |
|
339 | 332 | diff_abs = mp.fpath_meta(diff_rel_path) |
340 | 333 | try: |
341 | | - return GeoDiff().changes_count(diff_abs) |
| 334 | + return pygeodiff.GeoDiff().changes_count(diff_abs) |
342 | 335 | except ( |
343 | | - GeoDiffLibError, |
344 | | - GeoDiffLibConflictError, |
345 | | - GeoDiffLibUnsupportedChangeError, |
346 | | - GeoDiffLibVersionError, |
| 336 | + pygeodiff.GeoDiffLibError, |
| 337 | + pygeodiff.GeoDiffLibConflictError, |
| 338 | + pygeodiff.GeoDiffLibUnsupportedChangeError, |
| 339 | + pygeodiff.GeoDiffLibVersionError, |
347 | 340 | FileNotFoundError, |
348 | 341 | ): |
349 | 342 | return None |
|
0 commit comments