Skip to content

Commit

Permalink
Optimized some code
Browse files Browse the repository at this point in the history
  • Loading branch information
nilesr committed Oct 27, 2015
1 parent 6bf085a commit f0ac3db
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions BTEdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,7 @@ def __init__(self, filename = False, pretty = False): # Init function.
def __str__(self):
return str(self.master) # This is useless
def __repr__(self): # This too
temp="<BTEdb Database object. Initialized: "
if self.init:
temp += "True, file: "
else:
temp += "False file: "
temp += str(fileObj)
return temp + ">"
return "<BTEdb Database object. Initialized: " + str(self.init) + ", file: " + str(fileObj) + ">"
def OpenDatabase(self, filename, pretty = False): # Open database file
if self.init == True: # If we are alredy initiated
self.Destroy() # Destroy
Expand Down

0 comments on commit f0ac3db

Please sign in to comment.