Small refactoring (static method and comments)

This commit is contained in:
jar3b
2016-03-14 17:39:43 +03:00
parent 5e310df926
commit 8d0a54618e
2 changed files with 9 additions and 4 deletions

View File

@@ -21,7 +21,8 @@ class FiasFactory:
self.normalize_templ = template('aore/templates/postgre/normalize_query.sql', aoid="//aoid")
# Проверка, что строка является действительым UUID v4
def __check_uuid(self, guid):
@staticmethod
def __check_uuid(guid):
try:
UUID(guid)
except ValueError: