tools v1.0
(With some additions) Lots of authors, brought together by Apprentice Alf.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#! /usr/bin/python
|
||||
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
|
||||
# For use with Topaz Scripts Version 2.0
|
||||
# For use with Topaz Scripts Version 2.2
|
||||
|
||||
from __future__ import with_statement
|
||||
import csv
|
||||
import sys
|
||||
import os
|
||||
@@ -61,8 +60,11 @@ def encodeNumber(number):
|
||||
byte += flag
|
||||
result += chr(byte)
|
||||
flag = 0x80
|
||||
if number == 0 : break
|
||||
|
||||
if number == 0 :
|
||||
if (byte == 0xFF and negative == False) :
|
||||
result += chr(0x80)
|
||||
break
|
||||
|
||||
if negative:
|
||||
result += chr(0xFF)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user