knify 1.8.39__tar.gz → 1.8.40__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: knify
3
- Version: 1.8.39
3
+ Version: 1.8.40
4
4
  Summary: Development tools for python
5
5
  Home-page: https://github.com/qicongsheng/knify
6
6
  Author: qicongsheng
@@ -7,7 +7,7 @@ def get_pip_name():
7
7
 
8
8
 
9
9
  def get_version():
10
- return '1.8.39'
10
+ return '1.8.40'
11
11
 
12
12
 
13
13
  def print_version():
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env python
2
+ # -*- coding:utf-8 -*-
3
+ # Author: qicongsheng
4
+
5
+ def default_if_none(obj: object, default_value: object) -> object:
6
+ return default_value if obj is None or obj == '' else obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: knify
3
- Version: 1.8.39
3
+ Version: 1.8.40
4
4
  Summary: Development tools for python
5
5
  Home-page: https://github.com/qicongsheng/knify
6
6
  Author: qicongsheng
@@ -6,6 +6,7 @@ knify/dateutil.py
6
6
  knify/help.py
7
7
  knify/listutil.py
8
8
  knify/logger.py
9
+ knify/objutil.py
9
10
  knify/threadutil.py
10
11
  knify/warnutil.py
11
12
  knify.egg-info/PKG-INFO
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes