Skip to content

Commit

Permalink
Oddly enough 'initialize' was misspelled in one of the methods name, …
Browse files Browse the repository at this point in the history
…but consistently. Corrected now
  • Loading branch information
Bryant Howell committed Dec 11, 2019
1 parent 40cf42a commit 5d55b87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tableau_documents/tableau_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ def __init__(self, filename: str, logger_obj: Optional[Logger] = None):
self.file_replacement_map: Dict = {}

# Packaged up nicely but always run in constructor
self._open_file_and_intialize(filename=filename)
self._open_file_and_initialize(filename=filename)

@abstractmethod
def _open_file_and_intialize(self, filename):
def _open_file_and_initialize(self, filename):
pass

@property
Expand Down Expand Up @@ -353,7 +353,7 @@ def save_new_file(self, new_filename_no_extension: str) -> str:

class TDSX(DatasourceFileInterface, TableauPackagedFile):

def _open_file_and_intialize(self, filename):
def _open_file_and_initialize(self, filename):
try:
file_obj = open(filename, 'rb')
self.log('File type is {}'.format(self.file_type))
Expand Down Expand Up @@ -459,7 +459,7 @@ class TWBX(DatasourceFileInterface, TableauPackagedFile):

#self._open_file_and_intialize(filename=filename)

def _open_file_and_intialize(self, filename):
def _open_file_and_initialize(self, filename):
try:
file_obj = open(filename, 'rb')
self.log('File type is {}'.format(self.file_type))
Expand Down

0 comments on commit 5d55b87

Please sign in to comment.