--- a/waftools/gcov.py	2016-12-19 04:55:44.000000000 -0600
+++ b/waftools/gcov.py	2018-03-28 10:42:53.000000000 -0500
@@ -13,7 +13,7 @@
     wrapper = NamedTemporaryFile(delete=False)
     wrapper.write(script)
     wrapper.close()
-    os.chmod(wrapper.name, 0777)
+    os.chmod(wrapper.name, 0o777)
 
     yield wrapper.name
 
