Skip to content

Commit

Permalink
rename to use WXR as prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
johncylee committed Jan 12, 2014
1 parent b389116 commit 18d1136
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wp_backend.py → wxr_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os.path
from subprocess import Popen, PIPE

from wp_parser import WPXMLParser
from wxr_parser import WXRParser


def to_wintersmith(xml, path):
Expand Down Expand Up @@ -54,7 +54,7 @@ def to_wintersmith(xml, path):

def wp_to_markdown(xml):
with open(xml) as xml:
wp = WPXMLParser().parse(xml)
wp = WXRParser().parse(xml)
postprocess = [
(re.compile(r'~{3,} \{\.unspecified\}\n'),
r'```\n'),
Expand Down
4 changes: 2 additions & 2 deletions wp_parser.py → wxr_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def parse(self, data):
}


class WPXMLParser(object):
class WXRParser(object):

MultipleField = ('categories', 'tags')

Expand Down Expand Up @@ -323,7 +323,7 @@ def main():
argsparser.add_argument('xml', type=unicode, metavar='wordpress.xml')
args = argsparser.parse_args()
with open(args.xml) as f:
p = WPXMLParser(args.no_image)
p = WXRParser(args.no_image)
p.parse(f)


Expand Down

0 comments on commit 18d1136

Please sign in to comment.