Commit 5bf585f5512a0f59788df85dfd33f84e53e689af

Authored by Christian Herdtweck
1 parent 0e3efec2

ooxml: Create __version__, add license and start changelog

Showing 1 changed file with 44 additions and 0 deletions
oletools/ooxml.py
@@ -13,8 +13,40 @@ TODO: check what is duplicate here with oleid, maybe merge some day? @@ -13,8 +13,40 @@ TODO: check what is duplicate here with oleid, maybe merge some day?
13 TODO: "xml2003" == "flatopc"? 13 TODO: "xml2003" == "flatopc"?
14 14
15 .. codeauthor:: Intra2net AG <info@intra2net> 15 .. codeauthor:: Intra2net AG <info@intra2net>
  16 +License: BSD, see source code or documentation
  17 +
  18 +msodde is part of the python-oletools package:
  19 +http://www.decalage.info/python/oletools
16 """ 20 """
17 21
  22 +# === LICENSE =================================================================
  23 +
  24 +# msodde is copyright (c) 2017-2019 Philippe Lagadec (http://www.decalage.info)
  25 +# All rights reserved.
  26 +#
  27 +# Redistribution and use in source and binary forms, with or without
  28 +# modification, are permitted provided that the following conditions are met:
  29 +#
  30 +# * Redistributions of source code must retain the above copyright notice,
  31 +# this list of conditions and the following disclaimer.
  32 +# * Redistributions in binary form must reproduce the above copyright notice,
  33 +# this list of conditions and the following disclaimer in the documentation
  34 +# and/or other materials provided with the distribution.
  35 +#
  36 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  37 +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  38 +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  39 +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
  40 +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  41 +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  42 +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  43 +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  44 +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  45 +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  46 +# POSSIBILITY OF SUCH DAMAGE.
  47 +
  48 +# -- IMPORTS ------------------------------------------------------------------
  49 +
18 import sys 50 import sys
19 from oletools.common.log_helper import log_helper 51 from oletools.common.log_helper import log_helper
20 from oletools.common.io_encoding import uopen 52 from oletools.common.io_encoding import uopen
@@ -30,6 +62,18 @@ try: @@ -30,6 +62,18 @@ try:
30 except ImportError: 62 except ImportError:
31 import xml.etree.cElementTree as ET 63 import xml.etree.cElementTree as ET
32 64
  65 +# -----------------------------------------------------------------------------
  66 +# CHANGELOG:
  67 +# 2018-12-06 CH: - ensure stdout can handle unicode
  68 +
  69 +__version__ = '0.54.2'
  70 +
  71 +
  72 +###############################################################################
  73 +# CONSTANTS
  74 +###############################################################################
  75 +
  76 +
33 logger = log_helper.get_or_create_silent_logger('ooxml') 77 logger = log_helper.get_or_create_silent_logger('ooxml')
34 78
35 #: subfiles that have to be part of every ooxml file 79 #: subfiles that have to be part of every ooxml file