Skip to content

Commit

Permalink
Merge pull request #265 from foobar3000/master
Browse files Browse the repository at this point in the history
fix for py >= 39
  • Loading branch information
phaethon authored Aug 4, 2021
2 parents 75e953b + 6ab424d commit bf679a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kamene/layers/ipsec.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@
if not hasattr(socket, 'IPPROTO_ESP'):
socket.IPPROTO_ESP = 50


from fractions import gcd
import sys
if sys.version_info[:2] >= (3, 9):
from math import gcd
else:
from fractions import gcd

from kamene.data import IP_PROTOS
from kamene.error import log_loading
Expand Down

0 comments on commit bf679a6

Please sign in to comment.