1. Chris Mutel
  2. brightway2-data

Commits

Chris Mutel  committed 0f24e1a

0.10.5. safe_colorama used correctly as context manager

  • Participants
  • Parent commits 8e29276
  • Branches default

Comments (0)

Files changed (4)

File bw2data/__init__.py

View file
 # -*- coding: utf-8 -*
-__version__ = (0, 10, 4)
+__version__ = (0, 10, 5)
 
 from _config import config
 from meta import databases, methods, mapping, reset_meta, geomapping, \

File bw2data/upgrades.py

View file
     try:
         import stats_arrays
     except ImportError:
-        warnings.warn(safe_colorama(STATS_ARRAY_WARNING))
+        with safe_colorama():
+            warnings.warn(STATS_ARRAY_WARNING)
         if config._ipython:
             # ipython won't let us leave the shell...
             print "Please exit the IPython shell now"
     if not config.p['upgrades'].get('0.10 units restandardization', False):
         updates.append('0.10 units restandardization')
     if updates:
-        warnings.warn(safe_colorama(UPTODATE_WARNING))
+        with safe_colorama():
+            warnings.warn(UPTODATE_WARNING)
     return updates
 
 

File docs/conf.py

View file
 # The short X.Y version.
 version = '0.10'
 # The full version, including alpha/beta/rc tags.
-release = '0.10.4'
+release = '0.10.5'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

File setup.py

View file
 
 setup(
     name='bw2data',
-    version="0.10.4",
+    version="0.10.5",
     packages=packages,
     author="Chris Mutel",
     author_email="cmutel@gmail.com",