[Git][NTPsec/ntpsec][master] Fix removal of ".py" suffix from python scripts

Matt Selsky gitlab at mg.gitlab.com
Sat Dec 2 06:08:07 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
3c7787ff by Matt Selsky at 2017-12-02T00:53:11-05:00
Fix removal of ".py" suffix from python scripts

string.rstrip() and string.replace() do very different things.

- - - - -


1 changed file:

- wscript


Changes:

=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -1098,7 +1098,7 @@ def build(ctx):
     ctx(
         features="subst",
         source=scripts,
-        target=[x.rstrip(".py") for x in scripts],
+        target=[x.replace('.py', '') for x in scripts],
         chmod=Utils.O755,
         install_path='${BINDIR}',
     )



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3c7787ff0a94adec1d9b084ac2c9cb43a03d7208

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3c7787ff0a94adec1d9b084ac2c9cb43a03d7208
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171202/81c05296/attachment.html>


More information about the vc mailing list