Skip to content

Commit 0990ff9

Browse files
committed
git subrepo pull uno
subrepo: subdir: "uno" merged: "a64bd68" upstream: origin: "https://github.com/prrvchr/uno.git" branch: "main" commit: "a64bd68" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
1 parent 4712dcf commit 0990ff9

File tree

1,512 files changed

+103273
-32935
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,512 files changed

+103273
-32935
lines changed

uno/.gitrepo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[subrepo]
77
remote = https://github.com/prrvchr/uno.git
88
branch = main
9-
commit = 8c0644af51492f4c8444d3ceeac471c3a8716d7c
10-
parent = ad3b72217e16131c12e8c96da91ee264855124bc
9+
commit = a64bd6887cf79c07bb5bb6d385af3ffb893797db
10+
parent = 4712dcf6e0ebdda2086ba00cb9cca881ed1bd075
1111
method = merge
1212
cmdver = 0.4.3

uno/lib/java/helper/UnoHelper.java

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import com.sun.star.resource.XStringResourceResolver;
3333
import com.sun.star.sdbc.SQLException;
3434
import com.sun.star.sdbc.XRow;
35-
import com.sun.star.uno.Any;
3635
import com.sun.star.uno.AnyConverter;
3736
import com.sun.star.uno.Exception;
3837
import com.sun.star.uno.RuntimeException;
@@ -366,19 +365,19 @@ public static WrappedTargetException getWrappedException(Exception e)
366365
return exception;
367366
}
368367

369-
public static java.sql.SQLException getSQLException(java.lang.Exception e)
368+
public static java.sql.SQLException getSQLException(java.lang.Throwable e)
370369
{
371-
return new java.sql.SQLException(e.getMessage(), e);
370+
return new java.sql.SQLException(e.getLocalizedMessage(), e);
372371
}
373372

374373
public static SQLException getSQLException(java.sql.SQLException e)
375374
{
376-
return new SQLException(e.getMessage());
375+
return getUnoSQLException(e.getLocalizedMessage());
377376
}
378377

379378
public static SQLException getSQLException(Exception e, XInterface component)
380379
{
381-
SQLException exception = new SQLException(e.getMessage());
380+
SQLException exception = getUnoSQLException(e.getMessage());
382381
exception.Context = component;
383382
return exception;
384383
}
@@ -387,25 +386,36 @@ public static SQLException getSQLException(java.sql.SQLException e, XInterface c
387386
{
388387
SQLException exception = null;
389388
if (e != null) {
390-
exception = new SQLException(e.getMessage());
389+
exception = getUnoSQLException(e.getLocalizedMessage());
391390
exception.Context = component;
392-
exception.SQLState = e.getSQLState();
391+
String state = e.getSQLState();
392+
if (state != null) {
393+
exception.SQLState = state;
394+
}
393395
exception.ErrorCode = e.getErrorCode();
394396
SQLException ex = getNextSQLException(e.getNextException(), component);
395-
exception.NextException = (ex == null) ? Any.VOID : ex;
397+
if (ex != null) {
398+
exception.NextException = ex;
399+
}
396400
}
397401
return exception;
398402
}
399403

404+
private static SQLException getUnoSQLException(String msg)
405+
{
406+
return msg != null ? new SQLException(msg) : new SQLException();
407+
}
408+
400409
public static SQLException getSQLException(java.lang.Exception e,
401410
XInterface component)
402411
{
403-
SQLException exception = new SQLException(e.getMessage());
412+
SQLException exception = getUnoSQLException(e.getMessage());
404413
exception.Context = component;
405414
return exception;
406415
}
407416

408-
private static SQLException getNextSQLException(java.sql.SQLException e, XInterface component)
417+
private static SQLException getNextSQLException(java.sql.SQLException e,
418+
XInterface component)
409419
{
410420
SQLException exception = null;
411421
if (e != null) {
@@ -931,4 +941,28 @@ public static boolean getConfigurationOption(XHierarchicalNameAccess config,
931941
return option;
932942
}
933943

944+
public static String getCaller()
945+
{
946+
StackWalker stackWalker = StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE);
947+
StackWalker.StackFrame frame = stackWalker.walk(stream1 -> stream1.skip(2)
948+
.findFirst()
949+
.orElse(null));
950+
if (frame == null) {
951+
return "caller: null";
952+
}
953+
return String.format("caller: %s#%s, %s",
954+
frame.getClassName(),
955+
frame.getMethodName(),
956+
frame.getLineNumber());
957+
}
958+
959+
public static void printStackTrace()
960+
{
961+
Thread thread = Thread.currentThread();
962+
StackTraceElement[] stackTrace = thread.getStackTrace();
963+
for (int i = 1; i < stackTrace.length; i++) {
964+
System.out.println(stackTrace[i].getClassName() + " " + stackTrace[i].getMethodName() + " " + stackTrace[i].getLineNumber());
965+
}
966+
}
967+
934968
}
1.02 MB
Binary file not shown.
1.06 MB
Binary file not shown.
957 KB
Binary file not shown.

uno/lib/python/_distutils_hack/__init__.py

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
import os
44

55

6-
is_pypy = '__pypy__' in sys.builtin_module_names
6+
report_url = (
7+
"https://github.com/pypa/setuptools/issues/new?"
8+
"template=distutils-deprecation.yml"
9+
)
710

811

912
def warn_distutils_present():
1013
if 'distutils' not in sys.modules:
1114
return
12-
if is_pypy and sys.version_info < (3, 7):
13-
# PyPy for 3.6 unconditionally imports distutils, so bypass the warning
14-
# https://foss.heptapod.net/pypy/pypy/-/blob/be829135bc0d758997b3566062999ee8b23872b4/lib-python/3/site.py#L250
15-
return
1615
import warnings
1716

1817
warnings.warn(
@@ -30,7 +29,12 @@ def clear_distutils():
3029
return
3130
import warnings
3231

33-
warnings.warn("Setuptools is replacing distutils.")
32+
warnings.warn(
33+
"Setuptools is replacing distutils. Support for replacing "
34+
"an already imported distutils is deprecated. In the future, "
35+
"this condition will fail. "
36+
f"Register concerns at {report_url}"
37+
)
3438
mods = [
3539
name
3640
for name in sys.modules
@@ -45,6 +49,16 @@ def enabled():
4549
Allow selection of distutils by environment variable.
4650
"""
4751
which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
52+
if which == 'stdlib':
53+
import warnings
54+
55+
warnings.warn(
56+
"Reliance on distutils from stdlib is deprecated. Users "
57+
"must rely on setuptools to provide the distutils module. "
58+
"Avoid importing distutils or import setuptools first, "
59+
"and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. "
60+
f"Register concerns at {report_url}"
61+
)
4862
return which == 'local'
4963

5064

@@ -90,15 +104,15 @@ def find_spec(self, fullname, path, target=None):
90104
# optimization: only consider top level modules and those
91105
# found in the CPython test suite.
92106
if path is not None and not fullname.startswith('test.'):
93-
return
107+
return None
94108

95109
method_name = 'spec_for_{fullname}'.format(**locals())
96110
method = getattr(self, method_name, lambda: None)
97111
return method()
98112

99113
def spec_for_distutils(self):
100114
if self.is_cpython():
101-
return
115+
return None
102116

103117
import importlib
104118
import importlib.abc
@@ -115,7 +129,7 @@ def spec_for_distutils(self):
115129
# setuptools from the path but only after the hook
116130
# has been loaded. Ref #2980.
117131
# In either case, fall back to stdlib behavior.
118-
return
132+
return None
119133

120134
class DistutilsLoader(importlib.abc.Loader):
121135
def create_module(self, spec):

uno/lib/python/beautifulsoup4-4.12.2.dist-info/METADATA renamed to uno/lib/python/beautifulsoup4-4.12.3.dist-info/METADATA

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Metadata-Version: 2.1
22
Name: beautifulsoup4
3-
Version: 4.12.2
3+
Version: 4.12.3
44
Summary: Screen-scraping library
55
Project-URL: Download, https://www.crummy.com/software/BeautifulSoup/bs4/download/
66
Project-URL: Homepage, https://www.crummy.com/software/BeautifulSoup/bs4/
77
Author-email: Leonard Richardson <leonardr@segfault.org>
8-
License-Expression: MIT
8+
License: MIT License
99
License-File: AUTHORS
1010
License-File: LICENSE
1111
Keywords: HTML,XML,parse,soup
@@ -20,6 +20,12 @@ Classifier: Topic :: Text Processing :: Markup :: SGML
2020
Classifier: Topic :: Text Processing :: Markup :: XML
2121
Requires-Python: >=3.6.0
2222
Requires-Dist: soupsieve>1.2
23+
Provides-Extra: cchardet
24+
Requires-Dist: cchardet; extra == 'cchardet'
25+
Provides-Extra: chardet
26+
Requires-Dist: chardet; extra == 'chardet'
27+
Provides-Extra: charset-normalizer
28+
Requires-Dist: charset-normalizer; extra == 'charset-normalizer'
2329
Provides-Extra: html5lib
2430
Requires-Dist: html5lib; extra == 'html5lib'
2531
Provides-Extra: lxml
Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,50 @@
1-
bs4/__init__.py,sha256=4QO9qbbubMeEQw46YDLWEYS1yAebwKYR5l_Se9E_Gxo,33822
1+
bs4/__init__.py,sha256=kq32cCtQiNjjU9XwjD0b1jdXN5WEC87nJqSSW3PhVkM,33822
22
bs4/css.py,sha256=gqGaHRrKeCRF3gDqxzeU0uclOCeSsTpuW9gUaSnJeWc,10077
33
bs4/dammit.py,sha256=G0cQfsEqfwJ-FIQMkXgCJwSHMn7t9vPepCrud6fZEKk,41158
44
bs4/diagnose.py,sha256=uAwdDugL_67tB-BIwDIFLFbiuzGxP2wQzJJ4_bGYUrA,7195
5-
bs4/element.py,sha256=R-HP8gtZPFJ71Rl4ieIBct1I9VTErTAD9FW64Jtg6Sc,92716
6-
bs4/formatter.py,sha256=fE8Xf9SrHvTZcv_zDpgtOGWk3OIWENPoeKcwhuMJnDs,7184
7-
bs4/builder/__init__.py,sha256=KGBl_FgX1KV1wBIshW4EXlWjP3KLcRiF2opZ-zVcyAc,24393
8-
bs4/builder/_html5lib.py,sha256=LnhimXrUdKujKoHHbmzwNk8OBb11YfTRFXUwhZjwqow,19078
9-
bs4/builder/_htmlparser.py,sha256=2j4Kj0dFi86vD-OblQRaFFCsRXuWb1VdBGJVPxKKEUc,14919
10-
bs4/builder/_lxml.py,sha256=ik6BFGnxAzV2-21S_Wc-7ZeA174muSA_ZhmpnAe3g0E,14904
11-
bs4/tests/__init__.py,sha256=usdUEP_PwnDfhCdx9rQw9HLWRyc4k9goB6ErZT9aAc0,48391
5+
bs4/element.py,sha256=Dsol2iehkSjk10GzYgwFyjUEgpqmYZpyaAmbL0rWM2w,92845
6+
bs4/formatter.py,sha256=Bu4utAQYT9XDJaPPpTRM-dyxJDVLdxf_as-IU5gSY8A,7188
7+
bs4/builder/__init__.py,sha256=nwb35ftjcwzOs2WkjVm1zvfi7FxSyJP-nN1YheIVT14,24566
8+
bs4/builder/_html5lib.py,sha256=0w-hmPM5wWR2iDuRCR6MvY6ZPXbg_hgddym-YWqj03s,19114
9+
bs4/builder/_htmlparser.py,sha256=_VD5Z08j6A9YYMR4y7ZTfdMzwiCBsSUQAPuHiYB-WZI,14923
10+
bs4/builder/_lxml.py,sha256=yKdMx1kdX7H2CopwSWEYm4Sgrfkd-WDj8HbskcaLauU,14948
11+
bs4/tests/__init__.py,sha256=NydTegds_r7MoOEuQLS6TFmTA9TwK3KxJhwEkqjCGTQ,48392
1212
bs4/tests/test_builder.py,sha256=nc2JE5EMrEf-p24qhf2R8qAV5PpFiOuNpYCmtmCjlTI,1115
1313
bs4/tests/test_builder_registry.py,sha256=7WLj2prjSHGphebnrjQuI6JYr03Uy_c9_CkaFSQ9HRo,5114
1414
bs4/tests/test_css.py,sha256=jCcgIWem3lyPa5AjhAk9S6fWI07hk1rg0v8coD7bEtI,17279
1515
bs4/tests/test_dammit.py,sha256=MbSmRN6VEP0Rm56-w6Ja0TW8eC-8ZxOJ-wXWVf_hRi8,15451
1616
bs4/tests/test_docs.py,sha256=xoAxnUfoQ7aRqGImwW_9BJDU8WNMZHIuvWqVepvWXt8,1127
1717
bs4/tests/test_element.py,sha256=92oRSRoGk8gIXAbAGHErKzocx2MK32TqcQdUJ-dGQMo,2377
1818
bs4/tests/test_formatter.py,sha256=eTzj91Lmhv90z-WiHjK3sBJZm0hRk0crFY1TZaXstCY,4148
19-
bs4/tests/test_fuzz.py,sha256=wXfic-J9-sv4C3upnTeZju_PIa9NxktOD_zw3Ek0u9w,3637
19+
bs4/tests/test_fuzz.py,sha256=_K2utiYVkZ22mvh03g8CBioFU1QDJaff1vTaDyXhxNk,6972
2020
bs4/tests/test_html5lib.py,sha256=2-ipm-_MaPt37WTxEd5DodUTNhS4EbLFKPRaO6XSCW4,8322
2121
bs4/tests/test_htmlparser.py,sha256=wnngcIlzjEwH21JFfu_mgt6JdpLt0ncJfLcGT7HeGw0,6256
2222
bs4/tests/test_lxml.py,sha256=nQCmLt7bWk0id7xMumZw--PzEe1xF9PTQn3lvHyNC6I,7635
2323
bs4/tests/test_navigablestring.py,sha256=RGSgziNf7cZnYdEPsoqL1B2I68TUJp1JmEQVxbh_ryA,5081
2424
bs4/tests/test_pageelement.py,sha256=VdGjUxx3RhjqmNsJ92ao6VZC_YD7T8mdLkDZjosOYeE,14274
2525
bs4/tests/test_soup.py,sha256=JmnAPLE1_GXm0wmwEUN7icdvBz9HDch-qoU2mT_TDrs,19877
26-
bs4/tests/test_tag.py,sha256=f19uie7QehvgvhIqNWfjDRR4TKa-ftm_RRoo6LXZyqk,9016
26+
bs4/tests/test_tag.py,sha256=FBPDUisDCbFmvl5HmTtN49CGo3YoUXh5Wiuw5FMLS5E,9616
2727
bs4/tests/test_tree.py,sha256=n9nTQOzJb3-ZnZ6AkmMdZQ5TYcTUPnqHoVgal0mYXfg,48129
28+
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4670634698080256.testcase,sha256=yUdXkbpNK7LVOQ0LBHMoqZ1rWaBfSXWytoO_xdSm7Ho,15
2829
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4818336571064320.testcase,sha256=Uv_dx4a43TSfoNkjU-jHW2nSXkqHFg4XdAw7SWVObUk,23
2930
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-4999465949331456.testcase,sha256=OEyVA0Ej4FxswOElrUNt0In4s4YhrmtaxE_NHGZvGtg,30
31+
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5000587759190016.testcase,sha256=G4vpNBOz-RwMpi6ewEgNEa13zX0sXhmL7VHOyIcdKVQ,15347
3032
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5167584867909632.testcase,sha256=3d8z65o4p7Rur-RmCHoOjzqaYQ8EAtjmiBYTHNyAdl4,19469
33+
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5270998950477824.testcase,sha256=NfGIlit1k40Ip3mlnBkYOkIDJX6gHtjlErwl7gsBjAQ,12
34+
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5375146639360000.testcase,sha256=xy4i1U0nhFHcnyc5pRKS6JRMvuoCNUur-Scor6UxIGw,4317
35+
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5492400320282624.testcase,sha256=Q-UTYpQBUsWoMgIUspUlzveSI-41s4ABC3jajRb-K0o,11502
3136
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5703933063462912.testcase,sha256=2bq3S8KxZgk8EajLReHD8m4_0Lj_nrkyJAxB_z_U0D0,5
3237
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5843991618256896.testcase,sha256=MZDu31LPLfgu6jP9IZkrlwNes3f_sL8WFP5BChkUKdY,35
3338
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-5984173902397440.testcase,sha256=w58r-s6besG5JwPXpnz37W2YTj9-_qxFbk6hiEnKeIQ,51495
3439
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6124268085182464.testcase,sha256=q8rkdMECEXKcqVhOf5zWHkSBTQeOPt0JiLg2TZiPCuk,10380
3540
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6241471367348224.testcase,sha256=QfzoOxKwNuqG-4xIrea6MOQLXhfAAOQJ0r9u-J6kSNs,19
41+
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6306874195312640.testcase,sha256=MJ2pHFuuCQUiQz1Kor2sof7LWeRERQ6QK43YNqQHg9o,47
3642
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6450958476902400.testcase,sha256=EItOpSdeD4ewK-qgJ9vtxennwn_huguzXgctrUT7fqE,3546
3743
bs4/tests/fuzz/clusterfuzz-testcase-minimized-bs4_fuzzer-6600557255327744.testcase,sha256=a2aJTG4FceGSJXsjtxoS8S4jk_8rZsS3aznLkeO2_dY,124
3844
bs4/tests/fuzz/crash-0d306a50c8ed8bcd0785b67000fcd5dea1d33f08.testcase,sha256=jRFRtCKlP3-3EDLc_iVRTcE6JNymv0rYcVM6qRaPrxI,2607
39-
beautifulsoup4-4.12.2.dist-info/METADATA,sha256=M6TF9wpbgywQQvtehBohLTEr2f8e7cw909PZ3Xsk3N4,3556
40-
beautifulsoup4-4.12.2.dist-info/WHEEL,sha256=Fd6mP6ydyRguakwUJ05oBE7fh2IPxgtDN9IwHJ9OqJQ,87
41-
beautifulsoup4-4.12.2.dist-info/licenses/AUTHORS,sha256=uSIdbrBb1sobdXl7VrlUvuvim2dN9kF3MH4Edn0WKGE,2176
42-
beautifulsoup4-4.12.2.dist-info/licenses/LICENSE,sha256=VbTY1LHlvIbRDvrJG3TIe8t3UmsPW57a-LnNKtxzl7I,1441
43-
beautifulsoup4-4.12.2.dist-info/RECORD,,
45+
bs4/tests/fuzz/crash-ffbdfa8a2b26f13537b68d3794b0478a4090ee4a.testcase,sha256=7NsdCiXWAhNkmoW1pvF7rbZExyLAQIWtDtSHXIsH6YU,103
46+
beautifulsoup4-4.12.3.dist-info/METADATA,sha256=UkOS1koIjlakIy9Q1u2yCNwDEFOUZSrLcsbV-mTInz4,3790
47+
beautifulsoup4-4.12.3.dist-info/WHEEL,sha256=mRYSEL3Ih6g5a_CVMIcwiF__0Ae4_gLYh01YFNwiq1k,87
48+
beautifulsoup4-4.12.3.dist-info/licenses/AUTHORS,sha256=uSIdbrBb1sobdXl7VrlUvuvim2dN9kF3MH4Edn0WKGE,2176
49+
beautifulsoup4-4.12.3.dist-info/licenses/LICENSE,sha256=VbTY1LHlvIbRDvrJG3TIe8t3UmsPW57a-LnNKtxzl7I,1441
50+
beautifulsoup4-4.12.3.dist-info/RECORD,,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Wheel-Version: 1.0
2-
Generator: hatchling 1.18.0
2+
Generator: hatchling 1.21.0
33
Root-Is-Purelib: true
44
Tag: py3-none-any

uno/lib/python/beautifulsoup4-4.12.2.dist-info/licenses/AUTHORS renamed to uno/lib/python/beautifulsoup4-4.12.3.dist-info/licenses/AUTHORS

File renamed without changes.

0 commit comments

Comments
 (0)