Update ConfigParser: rename 'type_' back to 'type'. Rename project in setup.py to make RPM package names more standard.
authorRadek Brich <brich.radek@ifortuna.cz>
Fri, 16 Aug 2013 13:23:49 +0200
changeset 7 776ba4914dfc
parent 6 bb7742f924d7
child 8 c7ae4d2e820c
Update ConfigParser: rename 'type_' back to 'type'. Rename project in setup.py to make RPM package names more standard.
pycolib/configparser.py
setup.py
--- a/pycolib/configparser.py	Thu Jul 11 15:20:35 2013 +0200
+++ b/pycolib/configparser.py	Fri Aug 16 13:23:49 2013 +0200
@@ -10,9 +10,9 @@
         self.options = {}
         self.values = {}
 
-    def add_option(self, name, type_=str, default=None):
+    def add_option(self, name, type=str, default=None):
         """Register option name, type and default value."""
-        self.options[name] = {'type':type_, 'default':default}
+        self.options[name] = {'type':type, 'default':default}
         self.values[name] = default
 
     def load(self, fname):
--- a/setup.py	Thu Jul 11 15:20:35 2013 +0200
+++ b/setup.py	Fri Aug 16 13:23:49 2013 +0200
@@ -3,7 +3,7 @@
 from distutils.core import setup
 
 setup(
-    name='pycolib',
+    name='python3-pycolib',
     version='0.0.1',
     description='Library of small auxiliary modules',
     author='Radek Brich',