@@ -46,7 +46,7 @@ def __init__(self):
4646 @property
4747 def playbook_path (self ):
4848 """
49- Create an environment variable 'DYNAMIC'
49+ Create an environment variable 'DYNAMIC'
5050 containing the path of dynamic_playbook.json and returns it
5151 """
5252 if not os .getenv (self .key ):
@@ -143,7 +143,7 @@ def delete_from_playbook(self, stackoverflow_object, question_id):
143143 def display_panel (self ):
144144 playbook_data = self .playbook_content
145145 if (len (playbook_data ['items_stackoverflow' ]) == 0 ):
146- SearchError ("You have no entries in the playbook" ,
146+ SearchError ("You have no entries in the playbook" ,
147147 "Browse and save entries in playbook with 'p' key" )
148148 sys .exit ()
149149 # Creates QuestionPanelStackoverflow object
@@ -161,7 +161,7 @@ def __init__(self):
161161 # list( list( question_title, question_id, question_link )... )
162162 self .questions_data = []
163163
164- # dict( question_id:list( body, link ))
164+ # dict( question_id:list( body, link ))
165165 # corresponding to self.questions_data
166166 self .answer_data = defaultdict (lambda : False )
167167
@@ -214,7 +214,7 @@ def populate_answer_data(self, questions_list):
214214 self .answer_data [item ['question_id' ]] = item ['body_markdown' ]
215215 # Sometimes the StackExchange API fails to deliver some answers.
216216 # The below code is to fetch them
217- failed_ques_id = [question [1 ] for question in self .questions_data
217+ failed_ques_id = [question [1 ] for question in self .questions_data
218218 if not (self .answer_data [question [1 ]])]
219219 if not (len (failed_ques_id ) == 0 ):
220220 self .populate_answer_data (failed_ques_id )
@@ -223,7 +223,7 @@ def return_formatted_ans(self, ques_id):
223223 # This function uses uses Rich Markdown to format answers body.
224224 body_markdown = self .answer_data [int (ques_id )]
225225 body_markdown = str (body_markdown )
226- xml_markup_replacement = [("&" , "&" ), ("<" , "<" ), (">" , ">" ),
226+ xml_markup_replacement = [("&" , "&" ), ("<" , "<" ), (">" , ">" ),
227227 (""" , "\" " ), ("'" , "\' " ),
228228 ("'" , "\' " )]
229229 for convert_from , convert_to in xml_markup_replacement :
@@ -236,7 +236,7 @@ def return_formatted_ans(self, ques_id):
236236 highlighted = capture .get ()
237237 if not ('UTF' in locale .getlocale ()[1 ]):
238238 box_replacement = [("─" , "-" ), ("═" ,"=" ), ("║" ,"|" ), ("│" , "|" ),
239- ('┌' , '+' ), ("└" , "+" ), ("┐" , "+" ), ("┘" , "+" ),
239+ ('┌' , '+' ), ("└" , "+" ), ("┐" , "+" ), ("┘" , "+" ),
240240 ("╔" , "+" ), ("╚" , "+" ), ("╗" ,"+" ), ("╝" , "+" ),
241241 ("•" ,"*" )]
242242 for convert_from , convert_to in box_replacement :
@@ -316,14 +316,14 @@ def get_batch_ans_url(self, ques_id_list):
316316
317317 def make_request (self , que , tag : str ):
318318 """
319- This function uses the requests library to make
319+ This function uses the requests library to make
320320 the rest api call to the stackexchange server.
321- :param que: The user questions that servers as
321+ :param que: The user questions that servers as
322322 a question in the api.
323323 :type que: String
324324 :param tag: The tags that user wants for searching the relevant
325- answers. For e.g. TypeError might be for multiple
326- languages so is tag is used as "Python" then the
325+ answers. For e.g. TypeError might be for multiple
326+ languages so is tag is used as "Python" then the
327327 api will return answers based on the tags and question.
328328 :type tag: String
329329 :return: Json response from the api call.
@@ -333,7 +333,7 @@ def make_request(self, que, tag: str):
333333 try :
334334 resp = requests .get (self .__get_search_url (que , tag ))
335335 except :
336- SearchError ("\U0001F613 Search Failed" ,
336+ SearchError ("\U0001F613 Search Failed" ,
337337 "\U0001F4BB Try connecting to the internet" )
338338 sys .exit ()
339339 return resp .json ()
@@ -368,7 +368,7 @@ def setCustomKey(self):
368368 read_inbox - access a user's global inbox
369369 no_expiry - access_token's with this scope do not expire
370370 write_access - perform write operations as a user
371- private_info - access full history of a user's private
371+ private_info - access full history of a user's private
372372 actions on the site
373373 """
374374 scopes = 'read_inbox'
0 commit comments