about summary refs log tree commit diff
path: root/pkgs/servers/dict
diff options
context:
space:
mode:
authorLucas Hoffmann <lucc@posteo.de>2023-01-09 20:40:28 +0100
committerLucas Hoffmann <lucc@posteo.de>2023-01-09 20:40:28 +0100
commit01d76ca6c1f2f71d6078551b84fb00d40df9844b (patch)
tree9d522cd7686c89ab324bb9d91e7bf302492ae2a4 /pkgs/servers/dict
parent56d90f3fef4a5849ec848d142a280cada3324b18 (diff)
dictdDBs.wordnet: fix integer devision in python3
Diffstat (limited to 'pkgs/servers/dict')
-rwxr-xr-xpkgs/servers/dict/wordnet_structures.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/servers/dict/wordnet_structures.py b/pkgs/servers/dict/wordnet_structures.py
index bfb07c53dc6e6..e5c80b968fc23 100755
--- a/pkgs/servers/dict/wordnet_structures.py
+++ b/pkgs/servers/dict/wordnet_structures.py
@@ -26,6 +26,7 @@
 # written.
 
 import datetime
+import math
 from textwrap import TextWrapper
 
 CAT_ADJECTIVE = 0
@@ -227,7 +228,7 @@ original version.\n\n
       rv = ''
       while (e > 0):
          e -= 1
-         d = (i / 64**e)
+         d = math.floor(i / 64**e)
          rv += cls.base64_map[d]
          i = i % (64**e)
       return rv