File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ def resource(self):
134
134
if self .dom is None :
135
135
self .fetch ()
136
136
name = self .dom .find ("resource/name" ).text
137
- atom_link = [n for n in self .dom .find ("resource" ). getchildren () if 'href' in n .attrib ]
137
+ atom_link = [n for n in self .dom .find ("resource" ) if 'href' in n .attrib ]
138
138
ws_name = workspace_from_url (atom_link [0 ].get ('href' ))
139
139
if self .gs_version >= "2.13" :
140
140
if ":" in name :
@@ -158,7 +158,7 @@ def _resolve_style(self, element):
158
158
else :
159
159
style_name = element .find ('name' ).text
160
160
ws_name = None
161
- atom_link = [n for n in element . getchildren () if 'href' in n .attrib ]
161
+ atom_link = [n for n in element if 'href' in n .attrib ]
162
162
if atom_link and ws_name is None :
163
163
ws_name = workspace_from_url (atom_link [0 ].get ("href" ))
164
164
return self .catalog .get_styles (names = style_name , workspaces = ws_name )[0 ]
You can’t perform that action at this time.
0 commit comments