Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coolamqp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
coolamqp
Commits
24802a04
Commit
24802a04
authored
7 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
cefd4c9f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
coolamqp/framing/compilation/xml_fields.py
+1
-3
1 addition, 3 deletions
coolamqp/framing/compilation/xml_fields.py
with
1 addition
and
3 deletions
coolamqp/framing/compilation/xml_fields.py
+
1
−
3
View file @
24802a04
...
@@ -60,9 +60,7 @@ class _ValueField(_Field):
...
@@ -60,9 +60,7 @@ class _ValueField(_Field):
xmln
=
[
xmln
for
xmln
in
self
.
xml_names
if
xmln
in
elem
.
attrib
]
xmln
=
[
xmln
for
xmln
in
self
.
xml_names
if
xmln
in
elem
.
attrib
]
if
xmln
:
if
xmln
:
xmln
=
xmln
[
0
]
return
elem
.
attri
[
xmln
[
0
]]
if
xmln
in
elem
.
attrib
:
return
elem
.
attrib
[
xmln
]
else
:
else
:
if
self
.
default
is
_Required
:
if
self
.
default
is
_Required
:
raise
TypeError
(
'
Did not find field %s in elem tag %s, looked for names %s
'
%
(
self
.
field_name
,
elem
.
tag
,
self
.
xml_names
))
raise
TypeError
(
'
Did not find field %s in elem tag %s, looked for names %s
'
%
(
self
.
field_name
,
elem
.
tag
,
self
.
xml_names
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment