Skip to content

Commit

Permalink
Merge pull request #56 from johnb30/imports
Browse files Browse the repository at this point in the history
Fix relative imports errors.
  • Loading branch information
johnb30 committed Aug 20, 2014
2 parents 2b6700f + f6ba60a commit 1f9d61d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions petrarch/PETRreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@
except ImportError:
from configparser import ConfigParser


from . import PETRglobals
from . import utilities
import PETRglobals
import utilities

"""
CONVERTING TABARI DICTIONARIES TO PETRARCH FORMAT
Expand Down
2 changes: 1 addition & 1 deletion petrarch/PETRwriter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import print_function
from __future__ import unicode_literals

from . import utilities
import utilities


def write_events(event_dict, output_file):
Expand Down
8 changes: 4 additions & 4 deletions petrarch/petrarch.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
import argparse
import xml.etree.ElementTree as ET

from . import PETRglobals # global variables
from . import PETRreader # input routines
from . import PETRwriter
from . import utilities
import PETRglobals # global variables
import PETRreader # input routines
import PETRwriter
import utilities


# ================================ PARSER/CODER GLOBALS ================== #
Expand Down
2 changes: 1 addition & 1 deletion petrarch/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import logging
import corenlp
import dateutil.parser
from . import PETRglobals
import PETRglobals
from collections import defaultdict, Counter


Expand Down

0 comments on commit 1f9d61d

Please sign in to comment.