File: Remove-unnecessary-copyfile-function-to-avoid-upstream-ch.patch

package info (click to toggle)
imgp 2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 228 kB
  • sloc: python: 588; sh: 45; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: =?utf-8?b?IlNaIExpbiAo5p6X5LiK5pm6KSI=?= <szlin@debian.org>
Date: Wed, 25 Dec 2019 11:08:36 +0800
Subject: Remove unnecessary copyfile function to avoid upstream changes

---
 setup.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index fcf2382..0f94a54 100644
--- a/setup.py
+++ b/setup.py
@@ -13,9 +13,7 @@ def get_dist(pkgname):
     except DistributionNotFound:
         return None
 
-shutil.copyfile('imgp', 'imgp.py')
-
-with open('imgp.py', encoding='utf-8') as f:
+with open('imgp', encoding='utf-8') as f:
     version = re.search('_VERSION_ = \'([^\']+)\'', f.read()).group(1)
 
 with open('README.md', encoding='utf-8') as f: