pyupgrade: Reformat with --py36-plus.
This includes mainly fixes of string literals using f-strings or .format(...), as well as unpacking of list comprehensions.
This commit is contained in:
		
							parent
							
								
									e27ac0ddbe
								
							
						
					
					
						commit
						9ce7c52a10
					
				
					 78 changed files with 356 additions and 389 deletions
				
			
		|  | @ -174,9 +174,9 @@ def send_reminders() -> Optional[None]: | |||
|             key = (id, start) | ||||
|             if key not in sent: | ||||
|                 if start.hour == 0 and start.minute == 0: | ||||
|                     line = "%s is today." % (summary,) | ||||
|                     line = f"{summary} is today." | ||||
|                 else: | ||||
|                     line = "%s starts at %s" % (summary, start.strftime("%H:%M")) | ||||
|                     line = "{} starts at {}".format(summary, start.strftime("%H:%M")) | ||||
|                 print("Sending reminder:", line) | ||||
|                 messages.append(line) | ||||
|                 keys.add(key) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 PIG208
						PIG208