mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[core] Fix support for upcoming Python 3.12 (#8130)
This also adds the following test runners: - `3.12-dev` on `ubuntu-latest` - `3.12-dev` on `windows-latest` - `pypy-3.10` on `ubuntu-latest` Authored by: Grub4K
This commit is contained in:
		| @@ -383,9 +383,9 @@ class AwsIdp: | ||||
|         months = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] | ||||
|         days = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] | ||||
| 
 | ||||
|         time_now = datetime.datetime.utcnow() | ||||
|         time_now = datetime.datetime.now(datetime.timezone.utc) | ||||
|         format_string = "{} {} {} %H:%M:%S UTC %Y".format(days[time_now.weekday()], months[time_now.month], time_now.day) | ||||
|         time_string = datetime.datetime.utcnow().strftime(format_string) | ||||
|         time_string = time_now.strftime(format_string) | ||||
|         return time_string | ||||
| 
 | ||||
|     def __str__(self): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Simon Sawicki
					Simon Sawicki