From d0b3f0ee5d91aeee0204307a149d0f6f170a3c58 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Fri, 21 Feb 2014 23:39:42 +0100 Subject: [PATCH] cleanup: module naming re-structured --- pylot/core/{readdata => read}/__init__.py | 0 pylot/core/{readdata/types.py => read/data.py} | 2 ++ pylot/core/{readinput/types.py => read/inputs.py} | 1 + pylot/core/readinput/__init__.py | 0 4 files changed, 3 insertions(+) rename pylot/core/{readdata => read}/__init__.py (100%) rename pylot/core/{readdata/types.py => read/data.py} (98%) rename pylot/core/{readinput/types.py => read/inputs.py} (99%) delete mode 100644 pylot/core/readinput/__init__.py diff --git a/pylot/core/readdata/__init__.py b/pylot/core/read/__init__.py similarity index 100% rename from pylot/core/readdata/__init__.py rename to pylot/core/read/__init__.py diff --git a/pylot/core/readdata/types.py b/pylot/core/read/data.py similarity index 98% rename from pylot/core/readdata/types.py rename to pylot/core/read/data.py index b4b9dbec..ae4a9932 100644 --- a/pylot/core/readdata/types.py +++ b/pylot/core/read/data.py @@ -65,6 +65,8 @@ class SeiscompDataStructure(object): def modifiyFields(self, **kwargs): if kwargs and isinstance(kwargs, dict): for key, value in kwargs.iteritems(): + key = str(key) + value = str(value) try: if key in self.__sdsFields.keys(): self.__sdsFields[key] = str(value) diff --git a/pylot/core/readinput/types.py b/pylot/core/read/inputs.py similarity index 99% rename from pylot/core/readinput/types.py rename to pylot/core/read/inputs.py index 54aadcbc..473f91d7 100644 --- a/pylot/core/readinput/types.py +++ b/pylot/core/read/inputs.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- + class AutoPickParameter(object): ''' AutoPickParameters is a parameter type object capable to read and/or write diff --git a/pylot/core/readinput/__init__.py b/pylot/core/readinput/__init__.py deleted file mode 100644 index e69de29b..00000000