yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sek...@apache.org
Subject yetus git commit: YETUS-544. Parameters on the shebang line aren't portable
Date Wed, 11 Oct 2017 22:28:52 GMT
Repository: yetus
Updated Branches:
  refs/heads/master 53f22ae99 -> 8c59ecd41


YETUS-544. Parameters on the shebang line aren't portable

Signed-off-by: Kengo Seki <sekikn@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/8c59ecd4
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/8c59ecd4
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/8c59ecd4

Branch: refs/heads/master
Commit: 8c59ecd416fef96db932f4a74a042160cd035a32
Parents: 53f22ae
Author: Allen Wittenauer <aw@apache.org>
Authored: Sat Sep 2 18:05:37 2017 -0700
Committer: Kengo Seki <sekikn@apache.org>
Committed: Wed Oct 11 18:28:07 2017 -0400

----------------------------------------------------------------------
 release-doc-maker/releasedocmaker.py | 7 +++++--
 release-doc-maker/utils.py           | 1 +
 shelldocs/shelldocs.py               | 7 +++++--
 3 files changed, 11 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/8c59ecd4/release-doc-maker/releasedocmaker.py
----------------------------------------------------------------------
diff --git a/release-doc-maker/releasedocmaker.py b/release-doc-maker/releasedocmaker.py
index 9dbfc77..080abf1 100755
--- a/release-doc-maker/releasedocmaker.py
+++ b/release-doc-maker/releasedocmaker.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python -B
+#!/usr/bin/env python
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file
@@ -16,6 +16,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+import sys
 from glob import glob
 from optparse import OptionParser
 from time import gmtime, strftime, sleep
@@ -24,12 +25,14 @@ import errno
 import os
 import re
 import shutil
-import sys
 import urllib
 import urllib2
 import httplib
 import json
+sys.dont_write_bytecode = True
+# pylint: disable=wrong-import-position
 from utils import get_jira, to_unicode, sanitize_text, processrelnote, Outputs
+# pylint: enable=wrong-import-position
 
 try:
     import dateutil.parser

http://git-wip-us.apache.org/repos/asf/yetus/blob/8c59ecd4/release-doc-maker/utils.py
----------------------------------------------------------------------
diff --git a/release-doc-maker/utils.py b/release-doc-maker/utils.py
index ba42143..5bedf5a 100644
--- a/release-doc-maker/utils.py
+++ b/release-doc-maker/utils.py
@@ -21,6 +21,7 @@ import urllib2
 import sys
 import json
 import httplib
+sys.dont_write_bytecode = True
 
 NAME_PATTERN = re.compile(r' \([0-9]+\)')
 BASE_URL = "https://issues.apache.org/jira"

http://git-wip-us.apache.org/repos/asf/yetus/blob/8c59ecd4/shelldocs/shelldocs.py
----------------------------------------------------------------------
diff --git a/shelldocs/shelldocs.py b/shelldocs/shelldocs.py
index db5c3ed..a3c31b7 100755
--- a/shelldocs/shelldocs.py
+++ b/shelldocs/shelldocs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python -B
+#!/usr/bin/env python
 #
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
@@ -15,11 +15,14 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+# Do this immediately to prevent compiled forms
+import sys
 import os
 import re
-import sys
 from optparse import OptionParser
 
+sys.dont_write_bytecode = True
+
 ASFLICENSE = '''
 <!---
 # Licensed to the Apache Software Foundation (ASF) under one


Mime
View raw message