diff options
Diffstat (limited to 'morphlib/gitversion.py')
-rw-r--r-- | morphlib/gitversion.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/morphlib/gitversion.py b/morphlib/gitversion.py index c593c330..7b4459a4 100644 --- a/morphlib/gitversion.py +++ b/morphlib/gitversion.py @@ -1,4 +1,4 @@ -# Copyright (C) 2013 - 2014 Codethink Limited +# Copyright (C) 2013-2015 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -10,8 +10,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# with this program. If not, see <http://www.gnu.org/licenses/>. '''Version information retrieved either from the package data, or the @@ -34,7 +33,7 @@ try: commit = pkgutil.get_data('morphlib', 'commit') tree = pkgutil.get_data('morphlib', 'tree') ref = pkgutil.get_data('morphlib', 'ref') -except IOError, e: +except IOError as e: from os.path import dirname def run_git(*args): command = ['git'] + list(args) |