[Git][NTPsec/ntpsec][master] We already import os, no need to import os.path.exists()...

Matt Selsky gitlab at mg.gitlab.com
Tue Apr 25 05:37:02 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
f7104e3b by Matt Selsky at 2017-04-25T01:17:49-04:00
We already import os, no need to import os.path.exists()...

if we reference it by full name

- - - - -


1 changed file:

- wscript


Changes:

=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -202,9 +202,8 @@ def configure(ctx):
     if ctx.options.disable_manpage:
         ctx.env.DISABLE_MANPAGE = True
 
-    from os.path import exists
     from waflib.Utils import subprocess
-    if ((exists(".git")
+    if ((os.path.exists(".git")
          and ctx.find_program("git", var="BIN_GIT", mandatory=False))):
         ctx.start_msg("DEVEL: Getting revision")
         cmd = ["git", "log", "-1", "--format=%H"]



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f7104e3b95aea51de4ac7757a0af4d4a4369bfec
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/20170425/c12804da/attachment.html>


More information about the vc mailing list