]> git.ipfire.org Git - ipfire.org.git/blobdiff - webapp/backend/tracker.py
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire.org
[ipfire.org.git] / webapp / backend / tracker.py
index df72361a2d7f7b59a77427bafb9bfdf34bd41182..c30df8265130630cf42fc8ab74a6de33d00cf076 100644 (file)
@@ -2,6 +2,12 @@
 
 from __future__ import division
 
+def ncode_hex(s):
+       return s.encode("hex")
+
+def decode_hex(s):
+       return s.decode("hex")
+
 ##### This is borrowed from the bittorrent client libary #####
 
 def decode_int(x, f):