Skip to content

Commit

Permalink
use absolute imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Soni committed Aug 8, 2018
1 parent 2f0789b commit d2f5b67
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Adversary/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from Adversary import Adversary
from Adversary.adversary import Adversary
from Adversary.attacks import *
4 changes: 2 additions & 2 deletions Adversary/Adversary.py → Adversary/adversary.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import pandas as pd
from textblob import TextBlob

from attacks import *
from utils import *
from Adversary.attacks import *
from Adversary.utils import *


class Adversary:
Expand Down
2 changes: 1 addition & 1 deletion Adversary/attacks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from random import choice, randint, sample, randrange
from string import punctuation

from constants import *
from Adversary.constants import *

'''These act on a single text'''

Expand Down
2 changes: 1 addition & 1 deletion tests/test_adversary.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from Adversary import Adversary
from Adversary.adversary import Adversary

def test_generate_single_iter():
m = Adversary(verbose=True)
Expand Down

0 comments on commit d2f5b67

Please sign in to comment.