mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Missing imports
This commit is contained in:
parent
a829bbf60b
commit
62dfc736d4
1 changed files with 6 additions and 6 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
import shutil
|
||||||
|
import tempfile
|
||||||
import re
|
import re
|
||||||
from git import Repo,Tree,Blob
|
from git import Repo,Tree,Blob
|
||||||
|
|
||||||
|
@ -18,8 +20,7 @@ def apply_license(license, relimit, filename):
|
||||||
|
|
||||||
|
|
||||||
def apply_python_license(filename):
|
def apply_python_license(filename):
|
||||||
license="""
|
license="""#+
|
||||||
#+
|
|
||||||
# VIDE -- Void IDEntification pipeline -- @FILENAME@
|
# VIDE -- Void IDEntification pipeline -- @FILENAME@
|
||||||
# Copyright (C) 2010-2013 Guilhem Lavaux
|
# Copyright (C) 2010-2013 Guilhem Lavaux
|
||||||
# Copyright (C) 2011-2013 Paul M. Sutter
|
# Copyright (C) 2011-2013 Paul M. Sutter
|
||||||
|
@ -41,13 +42,12 @@ def apply_python_license(filename):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
print("Shell/Python file: %s" % filename)
|
print("Shell/Python file: %s" % filename)
|
||||||
relimit = r'(?s)#\+.*#\+'
|
relimit = r'^(?s)#\+.*#\+'
|
||||||
apply_license(license, relimit, filename)
|
apply_license(license, relimit, filename)
|
||||||
|
|
||||||
|
|
||||||
def apply_cpp_license(filename):
|
def apply_cpp_license(filename):
|
||||||
license="""
|
license="""/*+
|
||||||
/*+
|
|
||||||
VIDE -- Void IDEntification pipeline -- @FILENAME@
|
VIDE -- Void IDEntification pipeline -- @FILENAME@
|
||||||
Copyright (C) 2010-2013 Guilhem Lavaux
|
Copyright (C) 2010-2013 Guilhem Lavaux
|
||||||
Copyright (C) 2011-2013 Paul M. Sutter
|
Copyright (C) 2011-2013 Paul M. Sutter
|
||||||
|
@ -67,7 +67,7 @@ def apply_cpp_license(filename):
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
+*/
|
+*/
|
||||||
"""
|
"""
|
||||||
relimit = r'(?s)/\*\+.*\+\*/'
|
relimit = r'^(?s)/\*\+.*\+\*/'
|
||||||
print("C++ file: %s" % filename)
|
print("C++ file: %s" % filename)
|
||||||
apply_license(license, relimit, filename)
|
apply_license(license, relimit, filename)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue