Changeset: 1b045bbf5598 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1b045bbf5598
Modified Files:
        buildtools/conf/Maddlog
        misc/python/fixlicense.py
        sql/test/bincopy/Tests/very_large_date_file.SQL.py
        sql/test/bincopy/Tests/very_large_file.SQL.py
        sql/test/copy/Tests/compressed_on_client.py
Branch: default
Log Message:

Remove -*- lines and remove support for such lines in fixlicense.py.


diffs (93 lines):

diff --git a/buildtools/conf/Maddlog b/buildtools/conf/Maddlog
--- a/buildtools/conf/Maddlog
+++ b/buildtools/conf/Maddlog
@@ -1,5 +1,4 @@
 #!/usr/bin/env bash
-# -*-shell-script-*-
 
 # SPDX-License-Identifier: MPL-2.0
 #
diff --git a/misc/python/fixlicense.py b/misc/python/fixlicense.py
--- a/misc/python/fixlicense.py
+++ b/misc/python/fixlicense.py
@@ -205,20 +205,6 @@ def addlicense(file, pre=None, post=None
             # add a blank line
             addblank = True
             line = f.readline()
-        if '-*-' in line:
-            # if file starts with an Emacs mode specification, keep
-            # the line there
-            g.write(line)
-            # add a blank line
-            addblank = True
-            line = f.readline()
-        if 'vim:' in line:
-            # if file starts with a vim mode specification, keep
-            # the line there
-            g.write(line)
-            # add a blank line
-            addblank = True
-            line = f.readline()
         if line.startswith('<?xml'):
             # if line starts with an XML declaration, keep the line there
             g.write(line)
@@ -328,16 +314,6 @@ def dellicense(file, pre=None, post=None
             line = f.readline()
             if line and line == '\n':
                 line = f.readline()
-        if '-*-' in line:
-            g.write(line)
-            line = f.readline()
-            if line and line == '\n':
-                line = f.readline()
-        if 'vim:' in line:
-            g.write(line)
-            line = f.readline()
-            if line and line == '\n':
-                line = f.readline()
         if line.startswith('<?xml'):
             g.write(line)
             line = f.readline()
@@ -456,14 +432,6 @@ def listfile(file, pre=None, post=None, 
             line = f.readline()
             if line and line == '\n':
                 line = f.readline()
-        if '-*-' in line:
-            line = f.readline()
-            if line and line == '\n':
-                line = f.readline()
-        if 'vim:' in line:
-            line = f.readline()
-            if line and line == '\n':
-                line = f.readline()
         if line.startswith('<?xml'):
             line = f.readline()
             if line and line == '\n':
diff --git a/sql/test/bincopy/Tests/very_large_date_file.SQL.py 
b/sql/test/bincopy/Tests/very_large_date_file.SQL.py
--- a/sql/test/bincopy/Tests/very_large_date_file.SQL.py
+++ b/sql/test/bincopy/Tests/very_large_date_file.SQL.py
@@ -1,5 +1,3 @@
-# -*- python -*-
-
 import contextlib
 import os
 import sys
diff --git a/sql/test/bincopy/Tests/very_large_file.SQL.py 
b/sql/test/bincopy/Tests/very_large_file.SQL.py
--- a/sql/test/bincopy/Tests/very_large_file.SQL.py
+++ b/sql/test/bincopy/Tests/very_large_file.SQL.py
@@ -1,5 +1,3 @@
-# -*- python -*-
-
 import contextlib
 import os
 import sys
diff --git a/sql/test/copy/Tests/compressed_on_client.py 
b/sql/test/copy/Tests/compressed_on_client.py
--- a/sql/test/copy/Tests/compressed_on_client.py
+++ b/sql/test/copy/Tests/compressed_on_client.py
@@ -1,6 +1,3 @@
-# -*- python -*-
-
-
 import os
 import struct
 import sys
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to