Commits

Michał Górny  committed f4b7c3c

Python3 fix.

  • Participants
  • Parent commits a05890e

Comments (0)

Files changed (1)

File smart-live-rebuild.py

 
 			if childpid == 0:
 				pdata = {'packages': packages, 'erraneous': erraneous}
-				pipe = os.fdopen(commpipe[1], 'w')
+				pipe = os.fdopen(commpipe[1], 'wb')
 				pickle.dump(pdata, pipe, pickle.HIGHEST_PROTOCOL)
 				return 0
 		else:
 			os.close(commpipe[1])
-			pipe = os.fdopen(commpipe[0], 'r')
+			pipe = os.fdopen(commpipe[0], 'rb')
 			pdata = pickle.load(pipe)
 			packages = pdata['packages']
 			erraneous = pdata['erraneous']