Skip to content
Snippets Groups Projects
Commit 106a38de authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Further updates in header script

parent 265ff226
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,9 @@
//!
//! @homepage http://bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2013
//! @copyright Forschungszentrum Jülich GmbH 2015
//! @authors Scientific Computing Group at MLZ Garching
//! @authors C. Durniak, G. Pospelov, W. Van Herck, J. Wuttke
//! @authors C. Durniak, M. Ganeva, G. Pospelov, W. Van Herck, J. Wuttke
//
// ************************************************************************** //
......
......@@ -88,7 +88,7 @@ def update_header_in_file(filename):
Updates, if necessary, the header in given file
"""
fin = open(filename, 'r')
lines = [line.rstrip('\n') for line in fin]
lines = [line.decode('utf8').rstrip('\n') for line in fin]
fin.close()
current_header = get_current_header(lines)
......@@ -106,7 +106,6 @@ def update_header_in_file(filename):
print "{:65s} {:10s}".format(filename, "OK")
exit(0)
def update_directory(dirname):
......@@ -121,6 +120,8 @@ def update_directory(dirname):
for filename in list_of_files:
update_header_in_file(filename)
# update_header_in_file("./GUI/coregui/mainwindow/aboutapplicationdialog.cpp")
if __name__ == '__main__':
for dirname in directories:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment