Hello community,

here is the log from the commit of package python3-pickleshare for 
openSUSE:Factory checked in at 2016-09-27 13:43:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-pickleshare (Old)
 and      /work/SRC/openSUSE:Factory/.python3-pickleshare.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-pickleshare"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-pickleshare/python3-pickleshare.changes  
2016-07-18 21:24:51.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-pickleshare.new/python3-pickleshare.changes 
    2016-09-27 13:43:48.000000000 +0200
@@ -1,0 +2,9 @@
+Sun Sep 11 15:58:43 UTC 2016 - [email protected]
+
+- update to version 0.7.4:
+  * Accept any str-able object for the root path
+  * Convert test fixture tmpdir to string before creating
+    PickleShareDB
+  * Don't convert Py2 unicode path to str
+
+-------------------------------------------------------------------

Old:
----
  pickleshare-0.7.3.tar.gz

New:
----
  pickleshare-0.7.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-pickleshare.spec ++++++
--- /var/tmp/diff_new_pack.kL5naR/_old  2016-09-27 13:43:49.000000000 +0200
+++ /var/tmp/diff_new_pack.kL5naR/_new  2016-09-27 13:43:49.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python3-pickleshare
-Version:        0.7.3
+Version:        0.7.4
 Release:        0
 Summary:        Tiny shelve-like database with concurrency support
 License:        MIT

++++++ pickleshare-0.7.3.tar.gz -> pickleshare-0.7.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pickleshare-0.7.3/PKG-INFO 
new/pickleshare-0.7.4/PKG-INFO
--- old/pickleshare-0.7.3/PKG-INFO      2016-07-15 15:26:10.000000000 +0200
+++ new/pickleshare-0.7.4/PKG-INFO      2016-08-13 23:59:03.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pickleshare
-Version: 0.7.3
+Version: 0.7.4
 Summary: Tiny 'shelve'-like database with concurrency support
 Home-page: https://github.com/pickleshare/pickleshare
 Author: Ville Vainio
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pickleshare-0.7.3/pickleshare.egg-info/PKG-INFO 
new/pickleshare-0.7.4/pickleshare.egg-info/PKG-INFO
--- old/pickleshare-0.7.3/pickleshare.egg-info/PKG-INFO 2016-07-15 
15:26:10.000000000 +0200
+++ new/pickleshare-0.7.4/pickleshare.egg-info/PKG-INFO 2016-08-13 
23:59:03.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pickleshare
-Version: 0.7.3
+Version: 0.7.4
 Summary: Tiny 'shelve'-like database with concurrency support
 Home-page: https://github.com/pickleshare/pickleshare
 Author: Ville Vainio
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pickleshare-0.7.3/pickleshare.py 
new/pickleshare-0.7.4/pickleshare.py
--- old/pickleshare-0.7.3/pickleshare.py        2016-07-15 15:16:33.000000000 
+0200
+++ new/pickleshare-0.7.4/pickleshare.py        2016-08-13 23:56:02.000000000 
+0200
@@ -36,7 +36,7 @@
 from __future__ import print_function
 
 
-__version__ = "0.7.3"
+__version__ = "0.7.4"
 
 try:
     from pathlib import Path
@@ -51,6 +51,12 @@
 except ImportError:
     import pickle
 import errno
+import sys
+
+if sys.version_info[0] >= 3:
+    string_types = (str,)
+else:
+    string_types = (str, unicode)
 
 def gethashfile(key):
     return ("%02x" % abs(hash(key) % 256))[-2:]
@@ -61,7 +67,9 @@
     """ The main 'connection' object for PickleShare database """
     def __init__(self,root):
         """ Return a db object that will manage the specied directory"""
-        root = os.path.abspath(os.path.expanduser(str(root)))
+        if not isinstance(root, string_types):
+            root = str(root)
+        root = os.path.abspath(os.path.expanduser(root))
         self.root = Path(root)
         if not self.root.is_dir():
             # catching the exception is necessary if multiple processes are 
concurrently trying to create a folder


Reply via email to