Commits

Ben Bangert committed f7fe104 Merge
  • Participants
  • Parent commits 0100359, 3453197

Comments (0)

Files changed (2)

File beaker/session.py

             self.dict = {}
         
     def _create_id(self):
+        if hasattr(os, 'getpid'):
+            pid = os.getpid()
+        else:
+            pid = ''
+        
         self.id = md5.new(
-            md5.new("%f%s%f%d" % (time.time(), id({}), random.random(), os.getpid()) ).hexdigest(), 
+            md5.new("%f%s%f%s" % (time.time(), id({}), random.random(), pid) ).hexdigest(), 
         ).hexdigest()
         self.is_new = True
         if self.use_cookies:
 from setuptools import setup, find_packages
 
-version = '0.9.3'
+version = '0.9.4'
 
 setup(name='Beaker',
       version=version,