From f6ba60ae85ddbb3447b541bd17dcb02f34bb433f Mon Sep 17 00:00:00 2001 From: John Beieler Date: Tue, 19 Aug 2014 20:17:34 -0400 Subject: [PATCH] Fix relative imports errors. --- petrarch/PETRreader.py | 5 ++--- petrarch/PETRwriter.py | 2 +- petrarch/petrarch.py | 8 ++++---- petrarch/utilities.py | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/petrarch/PETRreader.py b/petrarch/PETRreader.py index 13de553..e7d1791 100644 --- a/petrarch/PETRreader.py +++ b/petrarch/PETRreader.py @@ -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 diff --git a/petrarch/PETRwriter.py b/petrarch/PETRwriter.py index a08d64c..318517e 100644 --- a/petrarch/PETRwriter.py +++ b/petrarch/PETRwriter.py @@ -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): diff --git a/petrarch/petrarch.py b/petrarch/petrarch.py index a1ffc10..ab1aab9 100644 --- a/petrarch/petrarch.py +++ b/petrarch/petrarch.py @@ -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 ================== # diff --git a/petrarch/utilities.py b/petrarch/utilities.py index d0333f7..e0694c5 100644 --- a/petrarch/utilities.py +++ b/petrarch/utilities.py @@ -7,7 +7,7 @@ import logging import corenlp import dateutil.parser -from . import PETRglobals +import PETRglobals from collections import defaultdict, Counter