diff options
author | Manuel RĂ¼ger <mrueg@gentoo.org> | 2018-03-30 15:43:44 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2018-03-30 10:22:35 -0700 |
commit | 1b2256106e368504b69e12514004d0e8a8e73b9b (patch) | |
tree | 1eabf831eb8fea7fea10f86a431a89cc439719d1 /repoman | |
parent | repoman: Update for a repoman-2.3.9 release (diff) | |
download | portage-1b2256106e368504b69e12514004d0e8a8e73b9b.tar.gz portage-1b2256106e368504b69e12514004d0e8a8e73b9b.tar.bz2 portage-1b2256106e368504b69e12514004d0e8a8e73b9b.zip |
FileNotFoundError is not defined in python2.7
Closes: https://github.com/gentoo/portage/pull/288
Fixes: 36fd0a505fe0 ("repoman: Add a new config.py file with config loading utilities")
Diffstat (limited to 'repoman')
-rw-r--r-- | repoman/pym/repoman/config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/repoman/pym/repoman/config.py b/repoman/pym/repoman/config.py index 0f2358cd9..578bbccde 100644 --- a/repoman/pym/repoman/config.py +++ b/repoman/pym/repoman/config.py @@ -8,6 +8,11 @@ import stat import yaml +try: + FileNotFoundError +except NameError: + FileNotFoundError = EnvironmentError + class ConfigError(Exception): """Raised when a config file fails to load""" |