Skip to content

Commit

Permalink
Remove debug trace
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreQuentel committed Oct 24, 2023
1 parent 43b6b8a commit 4558271
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions www/src/brython.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ $B.stdlib_module_names=Object.keys($B.stdlib)})(__BRYTHON__)
;
__BRYTHON__.implementation=[3,12,0,'dev',0]
__BRYTHON__.version_info=[3,12,0,'final',0]
__BRYTHON__.compiled_date="2023-10-24 21:35:33.657812"
__BRYTHON__.timestamp=1698176133657
__BRYTHON__.compiled_date="2023-10-24 21:38:02.419675"
__BRYTHON__.timestamp=1698176282419
__BRYTHON__.builtin_module_names=["_aio","_ajax","_ast","_base64","_binascii","_cmath","_io_classes","_json","_jsre","_locale","_multiprocessing","_posixsubprocess","_profile","_random","_sre","_sre1","_sre_utils","_string","_strptime","_svg","_symtable","_tokenize","_webcomponent","_webworker","_zlib_utils","array","builtins","dis","encoding_cp932","hashlib","html_parser","marshal","math","module1","modulefinder","posix","python_re","python_re1","python_re2","unicodedata"]
;
;(function($B){var _b_=$B.builtins
Expand Down Expand Up @@ -197,9 +197,7 @@ try{var re=new RegExp('\\p{'+category+'}','u')
return re.test(String.fromCodePoint(cp))}catch(err){
return in_unicode_category(category,cp)}}
function in_unicode_category(category,cp){
console.log('test if',cp,String.fromCodePoint(cp),'in category',category)
var table=$B.unicode[category],start=0,end=table.length-1,len=table.length,ix=Math.floor(len/2),nb=0
console.log('table',table)
var first=table[start],item=typeof first=='number' ? first :first[0]
if(cp < item){return false}
var last=table[end]
Expand Down
2 changes: 0 additions & 2 deletions www/src/python_tokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,12 @@ $B.in_unicode_category = function(category, cp){
function in_unicode_category(category, cp){
// categories used internally but not valid as General Category
// eg 'numeric' in str.isnumeric
console.log('test if', cp, String.fromCodePoint(cp), 'in category', category)
var table = $B.unicode[category],
start = 0,
end = table.length - 1,
len = table.length,
ix = Math.floor(len / 2),
nb = 0
console.log('table', table)
var first = table[start],
item = typeof first == 'number' ? first : first[0]
if(cp < item){
Expand Down
4 changes: 2 additions & 2 deletions www/src/version_info.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__BRYTHON__.implementation = [3, 12, 0, 'dev', 0]
__BRYTHON__.version_info = [3, 12, 0, 'final', 0]
__BRYTHON__.compiled_date = "2023-10-24 21:35:33.657812"
__BRYTHON__.timestamp = 1698176133657
__BRYTHON__.compiled_date = "2023-10-24 21:38:02.419675"
__BRYTHON__.timestamp = 1698176282419
__BRYTHON__.builtin_module_names = ["_aio",
"_ajax",
"_ast",
Expand Down

0 comments on commit 4558271

Please sign in to comment.