Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
Fix lint tool suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasf committed Apr 24, 2015
1 parent b1c65c9 commit cc224c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions exitwp.py
Expand Up @@ -99,15 +99,15 @@ def parse_items():
taxanomies = i.findall('category')
export_taxanomies = {}
for tax in taxanomies:
if not "domain" in tax.attrib:
if "domain" not in tax.attrib:
continue
t_domain = unicode(tax.attrib['domain'])
t_entry = unicode(tax.text)
if (not (t_domain in taxonomy_filter)
and not (t_domain
in taxonomy_entry_filter
and taxonomy_entry_filter[t_domain] == t_entry)):
if not t_domain in export_taxanomies:
if t_domain not in export_taxanomies:
export_taxanomies[t_domain] = []
export_taxanomies[t_domain].append(t_entry)

Expand Down Expand Up @@ -143,7 +143,7 @@ def gi(q, unicode_wrap=True, empty=False):
img_srcs.append(img['src'])
except:
print "could not parse html: " + body
#print img_srcs
# print img_srcs

excerpt = gi('excerpt:encoded', empty=True)

Expand Down Expand Up @@ -266,8 +266,8 @@ def get_attachment_path(src, dir, dir_prefix='images'):
if (not os.path.exists(target_dir)):
os.makedirs(target_dir)

#if src not in attachments[dir]:
##print target_name
# if src not in attachments[dir]:
# print target_name
return target_file

for i in data['items']:
Expand Down

0 comments on commit cc224c6

Please sign in to comment.