2022-07-31 Bruno Haible <bruno@clisp.org>
+ gnulib-tool.py: Use mainstream coding style.
+ * pygnulib/GLConfig.py: Use 'raise' to re-throw an exception.
+
gnulib-tool.py: Implement options --symlink and --local-symlink.
* gnulib-tool.py (main): Handle options --symlink and --local-symlink.
* pygnulib/constants.py (link_if_changed): Ignore FileNotFoundError from
except TypeError as error:
self.table['modules'] = old_modules
raise TypeError('each module must be a string')
- except GLError as error:
+ except GLError:
self.table['modules'] = old_modules
- raise GLError(error.errno, error.errinfo)
+ raise
else: # if type of modules is not list or tuple
raise TypeError('modules must be a list or a tuple, not %s' %
type(modules).__name__)
except TypeError as error:
self.table['avoids'] = old_avoids
raise TypeError('each module must be a string')
- except GLError as error:
+ except GLError:
self.table['avoids'] = old_avoids
- raise GLError(error.errno, error.errinfo)
+ raise
else: # if type of modules is not list or tuple
raise TypeError('modules must be a list or a tuple, not %s' %
type(modules).__name__)
except TypeError as error:
self.table['files'] = old_files
raise TypeError('each file must be a string')
- except GLError as error:
+ except GLError:
self.table['files'] = old_files
- raise GLError(error.errno, error.errinfo)
+ raise
else: # if type of files is not list or tuple
raise TypeError('files must be a list or a tuple, not %s' %
type(files).__name__)