easycoder 250123.1__tar.gz → 250126.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of easycoder might be problematic. Click here for more details.
- {easycoder-250123.1 → easycoder-250126.1}/PKG-INFO +2 -2
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/lock.md +2 -2
- easycoder-250126.1/doc/core/keywords/log.md +21 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/module.md +1 -1
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/print.md +1 -2
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/README.md +4 -2
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/__init__.py +1 -1
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/ec_core.py +20 -10
- {easycoder-250123.1 → easycoder-250126.1}/LICENSE +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/README.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/README.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/README.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/boolean.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/empty.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/ends.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/even.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/exists.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/greater.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/hasProperty.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/includes.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/is.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/less.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/list.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/none.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/not.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/numeric.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/object.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/odd.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/starts.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/conditions/string.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/add.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/append.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/assert.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/begin.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/clear.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/close.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/create.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/debug.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/decrement.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/delete.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/divide.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/exit.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/file.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/fork.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/get.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/go.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/gosub.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/if.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/import.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/increment.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/index.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/init.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/input.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/load.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/multiply.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/negate.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/open.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/pop.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/post.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/push.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/put.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/read.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/release.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/replace.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/return.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/run.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/save.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/script.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/set.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/split.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/stack.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/stop.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/system.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/take.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/toggle.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/truncate.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/unlock.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/variable.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/wait.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/while.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/keywords/write.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/arg.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/args.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/cos.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/datime.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/decode.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/element.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/elements.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/empty.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/encode.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/error.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/files.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/float.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/from.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/hash.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/index.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/integer.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/json.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/keys.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/left.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/length.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/lowercase.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/memory.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/modification.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/modulo.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/newline.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/now.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/position.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/property.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/random.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/right.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/sin.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/stringify.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/tab.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/tan.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/timestamp.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/today.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/trim.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/type.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/uppercase.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/value.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/core/values/weekday.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/attach.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/close.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/create.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/ellipse.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/image.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/move.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/on.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/rectangle.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/render.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/run.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/set.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/keywords/text.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/values/attribute.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/doc/graphics/values/window.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/README.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/ec_classes.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/ec_compiler.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/ec_condition.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/ec_graphics.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/ec_gutils.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/ec_handler.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/ec_program.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/ec_timestamp.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/easycoder/ec_value.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/images/Semoigo Dawn.jpg +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/json/graphics-demo.json +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/ec_keyboard.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/ec_p100.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/keyboards/4-function.json +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/keyboards/4-function.png +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/keyboards/qwerty-0.json +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/keyboards/qwerty-0.png +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/keyboards/qwerty-1.json +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/keyboards/qwerty-1.png +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/keyboards/qwerty-2.json +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/keyboards/qwerty-2.png +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/keyboards/qwerty-3.json +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/keyboards/qwerty-3.png +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/plugins/points.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/pyproject.toml +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/README.md +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/benchmark.ecs +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/config.ecg +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/connect.ecg +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/ec_keyboard.py +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/findxr.ecs +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/fizzbuzz.ecs +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/hello.ecs +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/points.ecs +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/test.ecs +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/testg.ecg +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/scripts/tests.ecs +0 -0
- {easycoder-250123.1 → easycoder-250126.1}/test.ecs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250126.1
|
|
4
4
|
Summary: Rapid scripting in English
|
|
5
5
|
Keywords: compiler,scripting,prototyping,programming,coding,python,low code,hypertalk,computer language,learn to code
|
|
6
6
|
Author-email: Graham Trott <gtanyware@gmail.com>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# log
|
|
2
|
+
|
|
3
|
+
## Syntax:
|
|
4
|
+
`log {message}`
|
|
5
|
+
|
|
6
|
+
## Examples:
|
|
7
|
+
``log `ProcessResponses` ``
|
|
8
|
+
|
|
9
|
+
## Description:
|
|
10
|
+
Prints a log message to the console.
|
|
11
|
+
|
|
12
|
+
The output is prefixed by the current time and the script line number of the print command. This is very useful in large scripts when trying to find a log command that is outputting some unwanted messages. For example, the above example produces the output
|
|
13
|
+
|
|
14
|
+
`14:46:59.048918: 1056-> ProcessResponses`
|
|
15
|
+
|
|
16
|
+
See also [print](print.md).
|
|
17
|
+
|
|
18
|
+
Next: [module](module.md)
|
|
19
|
+
Prev: [lock](lock.md)
|
|
20
|
+
|
|
21
|
+
[Back](../../README.md)
|
|
@@ -12,6 +12,6 @@ Declare a module variable, which enables you to run another script as a child of
|
|
|
12
12
|
Module variables can be assigned any number of elements - see [set the elements](set.md).
|
|
13
13
|
|
|
14
14
|
Next: [multiply](multiply.md)
|
|
15
|
-
Prev: [
|
|
15
|
+
Prev: [log](log.md)
|
|
16
16
|
|
|
17
17
|
[Back](../../README.md)
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
`print Data cat newline`
|
|
8
8
|
|
|
9
9
|
## Description:
|
|
10
|
-
Print something to the terminal. The second example shows the use of string catenation, which is also covered in [values](../core.md).
|
|
11
|
-
The output is prefixed by the script line number of the print command. This is very useful in large scripts when trying to figure where print output is coming from.
|
|
10
|
+
Print something to the terminal. The second example shows the use of string catenation, which is also covered in [values](../core.md). See also [log](log.md)
|
|
12
11
|
|
|
13
12
|
Next: [push](push.md)
|
|
14
13
|
Prev: [post](post.md)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# The 'graphics' package
|
|
2
2
|
|
|
3
|
+
**Documentation yet to be written**
|
|
4
|
+
|
|
3
5
|
The graphics package contains keywords values and conditionals needed for programming graphical applications.
|
|
4
6
|
|
|
5
7
|
There are three primary components to the language:
|
|
@@ -10,11 +12,11 @@ There are three primary components to the language:
|
|
|
10
12
|
|
|
11
13
|
The core keywords are:
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
|
|
14
16
|
|
|
15
17
|
The core values are:
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
The core conditions are:
|
|
20
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import json, math, hashlib, threading, os, subprocess, sys, requests, time, numbers, base64
|
|
1
|
+
import json, math, hashlib, threading, os, subprocess, sys, requests, time, numbers, base64, binascii
|
|
2
2
|
from psutil import Process
|
|
3
3
|
from datetime import datetime, timezone
|
|
4
4
|
from random import randrange
|
|
@@ -484,7 +484,6 @@ class Core(Handler):
|
|
|
484
484
|
except:
|
|
485
485
|
pass
|
|
486
486
|
RuntimeError(self.program, f'There is no label "{label}"')
|
|
487
|
-
return None
|
|
488
487
|
|
|
489
488
|
def r_gotoPC(self, command):
|
|
490
489
|
return command['goto']
|
|
@@ -499,12 +498,14 @@ class Core(Handler):
|
|
|
499
498
|
|
|
500
499
|
def r_gosub(self, command):
|
|
501
500
|
label = command['gosub'] + ':'
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
501
|
+
try:
|
|
502
|
+
address = self.symbols[label]
|
|
503
|
+
if address != None:
|
|
504
|
+
self.stack.append(self.nextPC())
|
|
505
|
+
return address
|
|
506
|
+
except:
|
|
507
|
+
pass
|
|
508
|
+
RuntimeError(self.program, f'There is no label "{label}"')
|
|
508
509
|
|
|
509
510
|
# if <condition> <action> [else <action>]
|
|
510
511
|
def k_if(self, command):
|
|
@@ -1001,9 +1002,10 @@ class Core(Handler):
|
|
|
1001
1002
|
value = self.getRuntimeValue(command['value'])
|
|
1002
1003
|
program = command['program']
|
|
1003
1004
|
code = program.code[program.pc]
|
|
1004
|
-
lino = code['lino'] + 1
|
|
1005
|
+
lino = str(code['lino'] + 1)
|
|
1006
|
+
while len(lino) < 5: lino = f' {lino}'
|
|
1005
1007
|
if value == None: value = '<empty>'
|
|
1006
|
-
if 'log' in command: print(f'{datetime.now().time()}:
|
|
1008
|
+
if 'log' in command: print(f'{datetime.now().time()}:{lino}-> {value}')
|
|
1007
1009
|
else: print(value)
|
|
1008
1010
|
return self.nextPC()
|
|
1009
1011
|
|
|
@@ -1987,6 +1989,10 @@ class Core(Handler):
|
|
|
1987
1989
|
value['type'] = 'text'
|
|
1988
1990
|
if self.encoding == 'utf-8':
|
|
1989
1991
|
value['content'] = content.decode('utf-8')
|
|
1992
|
+
elif self.encoding == 'hex':
|
|
1993
|
+
b = content.encode('utf-8')
|
|
1994
|
+
mb = binascii.unhexlify(b)
|
|
1995
|
+
value['content'] = mb.decode('utf-8')
|
|
1990
1996
|
elif self.encoding == 'base64':
|
|
1991
1997
|
base64_bytes = content.encode('ascii')
|
|
1992
1998
|
message_bytes = base64.b64decode(base64_bytes)
|
|
@@ -2030,6 +2036,10 @@ class Core(Handler):
|
|
|
2030
2036
|
value['type'] = 'text'
|
|
2031
2037
|
if self.encoding == 'utf-8':
|
|
2032
2038
|
value['content'] = content.encode('utf-8')
|
|
2039
|
+
elif self.encoding == 'hex':
|
|
2040
|
+
b = content.encode('utf-8')
|
|
2041
|
+
mb = binascii.hexlify(b)
|
|
2042
|
+
value['content'] = mb.decode('utf-8')
|
|
2033
2043
|
elif self.encoding == 'base64':
|
|
2034
2044
|
data_bytes = content.encode('ascii')
|
|
2035
2045
|
base64_bytes = base64.b64encode(data_bytes)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|