File: Remove-unnecessary-copyfile-function.patch

package info (click to toggle)
pdd 1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 228 kB
  • sloc: python: 548; sh: 30; makefile: 14
file content (24 lines) | stat: -rw-r--r-- 670 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
24
From: =?utf-8?b?IlNaIExpbiAo5p6X5LiK5pm6KSI=?= <szlin@debian.org>
Date: Tue, 20 Dec 2022 15:05:20 +0800
Subject: Remove unnecessary copyfile function

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

diff --git a/setup.py b/setup.py
index ff5d362..33ac5ac 100644
--- a/setup.py
+++ b/setup.py
@@ -7,10 +7,7 @@ import sys
 
 from setuptools import setup, find_packages
 
-if os.path.isfile('pdd'):
-    shutil.copyfile('pdd', 'pdd.py')
-
-with open('pdd.py', encoding='utf-8') as f:
+with open('pdd', encoding='utf-8') as f:
     version = re.search('_VERSION_ = \'([^\']+)\'', f.read()).group(1)
 
 with open('README.md', encoding='utf-8') as f: