From 36e831264695c8c9d60739d1957076754ed7c203 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Fri, 30 Jan 2015 11:16:48 +0800 Subject: [PATCH] python: rename variable 'result' to 'src' --- bindings/python/setup.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 8f87c5d5d..02f467260 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -40,7 +40,7 @@ def copy_sources(): This rearranges the source files under the python distribution directory. """ - result = [] + src = [] try: dir_util.remove_tree("src/") @@ -51,17 +51,17 @@ def copy_sources(): dir_util.copy_tree("../../include", "src/include/") dir_util.copy_tree("../../msvc/headers", "src/msvc/headers/") - result.extend(glob.glob("../../*.[ch]")) - result.extend(glob.glob("../../*.mk")) + src.extend(glob.glob("../../*.[ch]")) + src.extend(glob.glob("../../*.mk")) - result.extend(glob.glob("../../Makefile")) - result.extend(glob.glob("../../LICENSE*")) - result.extend(glob.glob("../../README")) - result.extend(glob.glob("../../*.TXT")) - result.extend(glob.glob("../../RELEASE_NOTES")) - result.extend(glob.glob("../../make.sh")) + src.extend(glob.glob("../../Makefile")) + src.extend(glob.glob("../../LICENSE*")) + src.extend(glob.glob("../../README")) + src.extend(glob.glob("../../*.TXT")) + src.extend(glob.glob("../../RELEASE_NOTES")) + src.extend(glob.glob("../../make.sh")) - for filename in result: + for filename in src: outpath = os.path.join("./src/", os.path.basename(filename)) log.info("%s -> %s" % (filename, outpath)) shutil.copy(filename, outpath)