aboutsummaryrefslogtreecommitdiffstats
path: root/mako/exceptions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-01-05 21:16:09 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2020-01-05 21:17:37 -0500
commitb06ce6ea566247b306f0531c5716e57b9c7b4876 (patch)
treeca17ce20f997e13b7aaba2b3db59f86e07ddd041 /mako/exceptions.py
parentbd830f679b873a872c102e7a5181c5e8b9d7d7c9 (diff)
downloadexternal_python_mako-b06ce6ea566247b306f0531c5716e57b9c7b4876.tar.gz
external_python_mako-b06ce6ea566247b306f0531c5716e57b9c7b4876.tar.bz2
external_python_mako-b06ce6ea566247b306f0531c5716e57b9c7b4876.zip
happy new year
also fix one flake8 error Change-Id: Ia828267fce34d5b194898e3e301b6d463470f068
Diffstat (limited to 'mako/exceptions.py')
-rw-r--r--mako/exceptions.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/mako/exceptions.py b/mako/exceptions.py
index b6388b1..ea7b20d 100644
--- a/mako/exceptions.py
+++ b/mako/exceptions.py
@@ -1,5 +1,5 @@
# mako/exceptions.py
-# Copyright 2006-2019 the Mako authors and contributors <see AUTHORS file>
+# Copyright 2006-2020 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
@@ -166,9 +166,7 @@ class RichTraceback(object):
module_source = info.code
template_source = info.source
template_filename = (
- info.template_filename
- or info.template_uri
- or filename
+ info.template_filename or info.template_uri or filename
)
except KeyError:
# A normal .py file (not a Template)