mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
More progress in migration to dual Python 2&3. Just 2 tests left.
This commit is contained in:
parent
f8cf78dfac
commit
16d8c4c9d1
7 changed files with 65 additions and 60 deletions
|
@ -63,8 +63,9 @@ class outscript(object):
|
|||
" spaces by the viewer when copy-pasting the code"
|
||||
" (disable this warning by disabling the 'warntabs'"
|
||||
" option).")
|
||||
return pfx + '"' + any2str(value, 'utf8').replace('\\','\\\\') \
|
||||
.replace('"','\\"').replace('\n','\\n') + '"' + sfx
|
||||
return (pfx + '"' + u2str(unicode(value), 'utf8')
|
||||
.replace('\\','\\\\').replace('"','\\"').replace('\n','\\n')
|
||||
+ '"' + sfx)
|
||||
if tvalue == int:
|
||||
if value < 0 and not self.globalmode and self.optsigns:
|
||||
#return '0x%X' % (value + 4294967296)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue