From 9d5ad2f70c29e884b794cad0f14e117a6ea31861 Mon Sep 17 00:00:00 2001 From: BrianPetkovsek <16124109+BrianPetkovsek@users.noreply.github.com> Date: Fri, 14 Jun 2019 21:43:18 -0400 Subject: [PATCH] make video2x backwards compatible adds future-fstrings package transforms the source to .format() format on runtime --- bin/exceptions.py | 2 +- bin/ffmpeg.py | 2 +- bin/image_cleaner.py | 2 +- bin/requirements.txt | 1 + bin/upscaler.py | 2 +- bin/video2x.py | 2 +- bin/waifu2x_caffe.py | 2 +- bin/waifu2x_converter.py | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/bin/exceptions.py b/bin/exceptions.py index c5c5637..685bf67 100644 --- a/bin/exceptions.py +++ b/bin/exceptions.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# -*- code:utf-8 -*- +# -*- coding: future_fstrings -*- """ Name: Video2X Exceptions Dev: K4YT3X diff --git a/bin/ffmpeg.py b/bin/ffmpeg.py index 166f6a3..7e7cf14 100644 --- a/bin/ffmpeg.py +++ b/bin/ffmpeg.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# -*- coding: future_fstrings -*- """ Name: FFMPEG Class Author: K4YT3X diff --git a/bin/image_cleaner.py b/bin/image_cleaner.py index 3b878a8..76bb536 100644 --- a/bin/image_cleaner.py +++ b/bin/image_cleaner.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# -*- coding: future_fstrings -*- """ Name: Video2X Image Cleaner Author: BrianPetkovsek diff --git a/bin/requirements.txt b/bin/requirements.txt index 472e89c..5855437 100644 --- a/bin/requirements.txt +++ b/bin/requirements.txt @@ -4,3 +4,4 @@ GPUtil psutil requests tqdm +future-fstrings>=1.1.0 diff --git a/bin/upscaler.py b/bin/upscaler.py index 791f004..5390242 100644 --- a/bin/upscaler.py +++ b/bin/upscaler.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# -*- coding: future_fstrings -*- """ Name: Video2X Upscaler Author: K4YT3X diff --git a/bin/video2x.py b/bin/video2x.py index 2df9f0b..a9a3aca 100644 --- a/bin/video2x.py +++ b/bin/video2x.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# -*- coding: future_fstrings -*- """ __ __ _ _ ___ __ __ diff --git a/bin/waifu2x_caffe.py b/bin/waifu2x_caffe.py index a3ea560..b512297 100644 --- a/bin/waifu2x_caffe.py +++ b/bin/waifu2x_caffe.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# -*- coding: future_fstrings -*- """ Name: Waifu2x Caffe Driver Author: K4YT3X diff --git a/bin/waifu2x_converter.py b/bin/waifu2x_converter.py index 4539bc4..d7a2927 100644 --- a/bin/waifu2x_converter.py +++ b/bin/waifu2x_converter.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- +# -*- coding: future_fstrings -*- """ Name: Waifu2x Converter CPP Driver Author: K4YT3X