Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Oct 18, 2024
1 parent 7ff70e0 commit 1a9f709
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion fastcore/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.7.18"
__version__ = "1.7.19"
2 changes: 1 addition & 1 deletion fastcore/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _to_xml(elm, lvl=0, indent=True, do_escape=True):

stag = tag
if attrs:
sattrs = ' '.join(_to_attr(k, v) for k, v in attrs.items() if v not in (False, None, '') and k[-1]!='_')
sattrs = ' '.join(_to_attr(k, v) for k, v in attrs.items() if v not in (False, None, '') and (k=='_' or k[-1]!='_'))
if sattrs: stag += f' {sattrs}'

cltag = '' if is_void else f'</{tag}>'
Expand Down
38 changes: 19 additions & 19 deletions nbs/11_xml.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 18,
"id": "254c8ff3",
"metadata": {},
"outputs": [],
Expand All @@ -370,7 +370,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 19,
"id": "0255b96f",
"metadata": {},
"outputs": [],
Expand All @@ -392,7 +392,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 20,
"id": "ea224c94",
"metadata": {},
"outputs": [],
Expand All @@ -411,7 +411,7 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 38,
"id": "a1ed9c01",
"metadata": {},
"outputs": [],
Expand All @@ -437,7 +437,7 @@
"\n",
" stag = tag\n",
" if attrs:\n",
" sattrs = ' '.join(_to_attr(k, v) for k, v in attrs.items() if v not in (False, None, '') and k[-1]!='_')\n",
" sattrs = ' '.join(_to_attr(k, v) for k, v in attrs.items() if v not in (False, None, '') and (k=='_' or k[-1]!='_'))\n",
" if sattrs: stag += f' {sattrs}'\n",
"\n",
" cltag = '' if is_void else f'</{tag}>'\n",
Expand All @@ -458,7 +458,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 39,
"id": "dd054392",
"metadata": {},
"outputs": [],
Expand All @@ -473,7 +473,7 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 40,
"id": "c2a921a2",
"metadata": {},
"outputs": [],
Expand All @@ -498,7 +498,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 41,
"id": "eef16b38",
"metadata": {},
"outputs": [],
Expand All @@ -522,7 +522,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 42,
"id": "d3d23c48",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -553,7 +553,7 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 43,
"id": "85a16341",
"metadata": {},
"outputs": [],
Expand All @@ -577,7 +577,7 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": 44,
"id": "61d63a79",
"metadata": {},
"outputs": [
Expand All @@ -601,7 +601,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 45,
"id": "51e58821",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -629,7 +629,7 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": 46,
"id": "798ae1d2",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -664,7 +664,7 @@
},
{
"cell_type": "code",
"execution_count": 44,
"execution_count": 47,
"id": "5f0e91e0",
"metadata": {},
"outputs": [],
Expand All @@ -677,7 +677,7 @@
},
{
"cell_type": "code",
"execution_count": 45,
"execution_count": 48,
"id": "39fab735",
"metadata": {},
"outputs": [],
Expand All @@ -701,7 +701,7 @@
},
{
"cell_type": "code",
"execution_count": 46,
"execution_count": 49,
"id": "16c9bd71",
"metadata": {},
"outputs": [
Expand All @@ -721,7 +721,7 @@
"body((div(('Some text 1<2', i(('in italics',),{'spurious': True}), input((),{'name': 'me'}), img((),{'src': 'filename', 'data': 1})),{'style': 'padding:3px'}),),{'class': 'myclass'})"
]
},
"execution_count": 46,
"execution_count": 49,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -739,7 +739,7 @@
},
{
"cell_type": "code",
"execution_count": 47,
"execution_count": 50,
"id": "1d8a28b1",
"metadata": {},
"outputs": [],
Expand All @@ -762,7 +762,7 @@
},
{
"cell_type": "code",
"execution_count": 48,
"execution_count": 52,
"id": "ad32b076",
"metadata": {},
"outputs": [],
Expand Down
2 changes: 1 addition & 1 deletion settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ author = Jeremy Howard and Sylvain Gugger
author_email = [email protected]
copyright = fast.ai
branch = master
version = 1.7.18
version = 1.7.19
min_python = 3.8
audience = Developers
language = English
Expand Down

0 comments on commit 1a9f709

Please sign in to comment.