Removing useless pass methods
This commit is contained in:
parent
f52e1415b8
commit
860563b9f9
1 changed files with 0 additions and 6 deletions
|
|
@ -107,7 +107,6 @@ class setup:
|
||||||
print("getFriendsTimeline() failed with a " + str(e.code) + " error code.")
|
print("getFriendsTimeline() failed with a " + str(e.code) + " error code.")
|
||||||
else:
|
else:
|
||||||
print("getFriendsTimeline() requires you to be authenticated.")
|
print("getFriendsTimeline() requires you to be authenticated.")
|
||||||
pass
|
|
||||||
|
|
||||||
def getUserTimeline(self, id = None, **kwargs):
|
def getUserTimeline(self, id = None, **kwargs):
|
||||||
if id is not None and ("user_id" in kwargs) is False and ("screen_name" in kwargs) is False:
|
if id is not None and ("user_id" in kwargs) is False and ("screen_name" in kwargs) is False:
|
||||||
|
|
@ -138,7 +137,6 @@ class setup:
|
||||||
print("getUserMentions() failed with a " + str(e.code) + " error code.")
|
print("getUserMentions() failed with a " + str(e.code) + " error code.")
|
||||||
else:
|
else:
|
||||||
print("getUserMentions() requires you to be authenticated.")
|
print("getUserMentions() requires you to be authenticated.")
|
||||||
pass
|
|
||||||
|
|
||||||
def showStatus(self, id):
|
def showStatus(self, id):
|
||||||
try:
|
try:
|
||||||
|
|
@ -147,7 +145,6 @@ class setup:
|
||||||
if self.debug is True:
|
if self.debug is True:
|
||||||
print(e.headers)
|
print(e.headers)
|
||||||
print("Failed with a " + str(e.code) + " error code. Does this user hide/protect their updates? If so, you'll need to authenticate and be their friend to get their timeline.")
|
print("Failed with a " + str(e.code) + " error code. Does this user hide/protect their updates? If so, you'll need to authenticate and be their friend to get their timeline.")
|
||||||
pass
|
|
||||||
|
|
||||||
def updateStatus(self, status, in_reply_to_status_id = None):
|
def updateStatus(self, status, in_reply_to_status_id = None):
|
||||||
if len(list(status)) > 140:
|
if len(list(status)) > 140:
|
||||||
|
|
@ -161,7 +158,6 @@ class setup:
|
||||||
print("updateStatus() failed with a " + str(e.code) + " error code.")
|
print("updateStatus() failed with a " + str(e.code) + " error code.")
|
||||||
else:
|
else:
|
||||||
print("updateStatus() requires you to be authenticated.")
|
print("updateStatus() requires you to be authenticated.")
|
||||||
pass
|
|
||||||
|
|
||||||
def destroyStatus(self, id):
|
def destroyStatus(self, id):
|
||||||
if self.authenticated is True:
|
if self.authenticated is True:
|
||||||
|
|
@ -173,7 +169,6 @@ class setup:
|
||||||
print("destroyStatus() failed with a " + str(e.code) + " error code.")
|
print("destroyStatus() failed with a " + str(e.code) + " error code.")
|
||||||
else:
|
else:
|
||||||
print("destroyStatus() requires you to be authenticated.")
|
print("destroyStatus() requires you to be authenticated.")
|
||||||
pass
|
|
||||||
|
|
||||||
def endSession(self):
|
def endSession(self):
|
||||||
if self.authenticated is True:
|
if self.authenticated is True:
|
||||||
|
|
@ -186,7 +181,6 @@ class setup:
|
||||||
print("endSession failed with a " + str(e.code) + " error code.")
|
print("endSession failed with a " + str(e.code) + " error code.")
|
||||||
else:
|
else:
|
||||||
print("You can't end a session when you're not authenticated to begin with.")
|
print("You can't end a session when you're not authenticated to begin with.")
|
||||||
pass
|
|
||||||
|
|
||||||
def getDirectMessages(self, since_id = None, max_id = None, count = None, page = "1"):
|
def getDirectMessages(self, since_id = None, max_id = None, count = None, page = "1"):
|
||||||
if self.authenticated is True:
|
if self.authenticated is True:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue