~roeldeconinck/mnemosyne-proj/import

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/libmnemosyne/file_formats/mnemosyne1_mem.py

  • Committer: Peter Bienstman
  • Date: 2011-08-23 18:18:05 UTC
  • Revision ID: peter.bienstman@ugent.be-20110823181805-1focx6h734my5df3
Don't erroneously change directory names when upgrading.

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
        # Convert sound tags to audio tags.
252
252
        for key in fact_data:
253
253
            for match in re_sound.finditer(fact_data[key]):
 
254
                print match.group(), match.group(0)
254
255
                fact_data[key] = fact_data[key].replace(match.group(),
255
 
                    match.group().replace("sound", "audio"))
 
256
                    match.group().replace("<sound src", "<audio src"))
256
257
        # Copy files to media directory, creating subdirectories as we go.
257
258
        for key in fact_data:
258
259
            for match in re_src.finditer(fact_data[key]):