summaryrefslogtreecommitdiffstats
path: root/msgfmt.py
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2016-10-16 20:51:12 -0700
committerCalum Lind <calumlind+deluge@gmail.com>2016-10-26 09:58:43 +0100
commitda51e3a3d54b0e44cb493449297641a2cdaf4685 (patch)
tree579d258bcfe999ef4379f6318ed31985dcad4f4d /msgfmt.py
parent837dae242c0948f224026e2a6783ab64844ff716 (diff)
downloaddeluge-da51e3a3d54b0e44cb493449297641a2cdaf4685.tar.gz
deluge-da51e3a3d54b0e44cb493449297641a2cdaf4685.tar.bz2
deluge-da51e3a3d54b0e44cb493449297641a2cdaf4685.zip
[Py2to3] A group of small compatiblity code changes
* Replace the uses of long with int. * Replace im_func with __func__ as it has been provided for Python 3 forward-compatibility. * Fix next/__next__ for Python 3 compatibility. * Remove the long number literal * Ensure freespace() returns int
Diffstat (limited to 'msgfmt.py')
-rwxr-xr-xmsgfmt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/msgfmt.py b/msgfmt.py
index e4debdd00..81510e19c 100755
--- a/msgfmt.py
+++ b/msgfmt.py
@@ -86,7 +86,7 @@ def generate():
voffsets += [l2, o2 + valuestart]
offsets = koffsets + voffsets
output = struct.pack("Iiiiiii",
- 0x950412deL, # Magic
+ 0x950412de, # Magic
0, # Version
len(keys), # # of entries
7 * 4, # start of key index