This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, generate has been updated via 88d3600064fa5461ea1aeb818349e8b7ab910283 (commit) via d2b4b9318df648e5d8808992883beae29c7d60f7 (commit) via b887026dd72c650c80b7ad6cbb0b0fb50ad3056f (commit) via 02fa5eb389d00cf1a270cdb0db51fae380d31d28 (commit) via bd6e88a5eb71e27afd0f16d24ec008d5d04d9b9e (commit) from 0acddf9bde07520ba408dbf0772c84d02bc074ba (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/88d3600064fa5461ea1aeb818349e8b7ab910...
commit 88d3600064fa5461ea1aeb818349e8b7ab910283 Author: Tomas Gavenciak gavento@ucw.cz Date: Sat Aug 13 18:01:02 2011 +0200
Fix a varname typo
diff --git a/pylib/gfxprim/render_utils.py b/pylib/gfxprim/render_utils.py index 2be8f46..12e2472 100644 --- a/pylib/gfxprim/render_utils.py +++ b/pylib/gfxprim/render_utils.py @@ -36,7 +36,7 @@ def render_file(env, source, result): try: source_text = source_file.read() finally: - source_text.close() + source_file.close() # Hack to preserve empty lines before %% line_statement source_text = re.sub("nn[ t]*%%", "n{{''}}n%%", source_text)
@@ -53,7 +53,7 @@ def render_file(env, source, result): try: result_file.write(result_text) finally: - resulf_file.close() + result_file.close()
def load_gfxprimconfig(config_file = None):
http://repo.or.cz/w/gfxprim.git/commit/d2b4b9318df648e5d8808992883beae29c7d6...
commit d2b4b9318df648e5d8808992883beae29c7d60f7 Author: Tomas Gavenciak gavento@ucw.cz Date: Sat Aug 13 17:26:01 2011 +0200
Remove "with .. as" statement from .py
diff --git a/pylib/gfxprim/render_utils.py b/pylib/gfxprim/render_utils.py index 6c3d430..2be8f46 100644 --- a/pylib/gfxprim/render_utils.py +++ b/pylib/gfxprim/render_utils.py @@ -32,8 +32,11 @@ def create_environment(config, template_dir):
def render_file(env, source, result): - with open(source) as source_file: + source_file = open(source) + try: source_text = source_file.read() + finally: + source_text.close() # Hack to preserve empty lines before %% line_statement source_text = re.sub("nn[ t]*%%", "n{{''}}n%%", source_text)
@@ -46,8 +49,11 @@ def render_file(env, source, result): header_guard = os.path.split(result)[1].upper().replace('.', '_').replace('-', '_'), ) - with open(result, "w") as result_file: + result_file = open(result, "w") + try: result_file.write(result_text) + finally: + resulf_file.close()
def load_gfxprimconfig(config_file = None):
http://repo.or.cz/w/gfxprim.git/commit/b887026dd72c650c80b7ad6cbb0b0fb50ad30...
commit b887026dd72c650c80b7ad6cbb0b0fb50ad3056f Author: Tomas Gavenciak gavento@ucw.cz Date: Sat Aug 13 17:22:59 2011 +0200
Add filename info to template generation
diff --git a/pylib/gfxprim/render_utils.py b/pylib/gfxprim/render_utils.py index e383619..6c3d430 100644 --- a/pylib/gfxprim/render_utils.py +++ b/pylib/gfxprim/render_utils.py @@ -21,7 +21,7 @@ def create_environment(config, template_dir): env.globals['pixelsizes'] = config.pixelsizes env.globals['pixeltypes'] = config.pixeltypes env.globals['pixeltypes_dict'] = config.pixeltypes_dict - env.globals['gfxprim_config'] = config + env.globals['config'] = config from gfxprim.pixelsize import LE, BE env.globals['LE'] = LE env.globals['BE'] = BE @@ -38,6 +38,7 @@ def render_file(env, source, result): source_text = re.sub("nn[ t]*%%", "n{{''}}n%%", source_text)
tmpl = env.from_string(source_text) + tmpl.filename = source result_text = tmpl.render( date = time.ctime(), target = result,
http://repo.or.cz/w/gfxprim.git/commit/02fa5eb389d00cf1a270cdb0db51fae380d31...
commit 02fa5eb389d00cf1a270cdb0db51fae380d31d28 Author: Tomas Gavenciak gavento@ucw.cz Date: Sat Aug 13 17:22:10 2011 +0200
Remove a float division causing a DeprecationWarning
diff --git a/include/core/GP_Convert_Scale.gen.h.t b/include/core/GP_Convert_Scale.gen.h.t index 86c43b0..c358576 100644 --- a/include/core/GP_Convert_Scale.gen.h.t +++ b/include/core/GP_Convert_Scale.gen.h.t @@ -3,7 +3,7 @@ {% block descr %}Fast value scaling macros{% endblock %}
{% macro multcoef(s1, s2) -%} -(0{% for i in range((s2+s1-1)/s1) %}+{{ 2**(i*s1) }}{% endfor %}) +(0{% for i in range((s2 + s1 - 1) // s1) %}+{{ 2 ** (i * s1) }}{% endfor %}) {%- endmacro %}
%% block body
http://repo.or.cz/w/gfxprim.git/commit/bd6e88a5eb71e27afd0f16d24ec008d5d04d9...
commit bd6e88a5eb71e27afd0f16d24ec008d5d04d9b9e Author: Tomas Gavenciak gavento@ucw.cz Date: Sat Aug 13 17:21:07 2011 +0200
Make Python warnings in code generation errors
diff --git a/config.mk b/config.mk index d9a784d..eb23555 100644 --- a/config.mk +++ b/config.mk @@ -6,4 +6,4 @@ LDLIBS+=-ldl PYLIBSDIR=$(TOPDIR)/pylib
# Command to run Python with pylib/ modules -PYTHON=PYTHONPATH=$$PYTHONPATH:${PYLIBSDIR} python +PYTHON=PYTHONPATH=$$PYTHONPATH:${PYLIBSDIR} python -Werror
-----------------------------------------------------------------------
Summary of changes: config.mk | 2 +- include/core/GP_Convert_Scale.gen.h.t | 2 +- pylib/gfxprim/render_utils.py | 13 ++++++++++--- 3 files changed, 12 insertions(+), 5 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.