Skip to content

Commit

Permalink
refactor: simplified the version number split
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Nov 30, 2021
1 parent beed298 commit 0b8c8dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/appier/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def _version_t():
if hasattr(pymongo_l, "_version_t"): return pymongo_l._version_t
version_l = pymongo.version.split(".", 2)
if len(version_l) == 2: version_l.append("0")
major_s, minor_s, patch_s = version_l[:3]
major_s, minor_s, patch_s = version_l
pymongo_l._version_t = (int(major_s), int(minor_s), int(patch_s))
return pymongo_l._version_t

Expand Down

0 comments on commit 0b8c8dd

Please sign in to comment.