Source

IronPython.Zlib / src / Compress.cs

Diff from to

src/Compress.cs

  * ***************************************************************************/
 
 using System;
-using System.Collections.Generic;
-using System.Text;
+using ComponentAce.Compression.Libs.ZLib;
 using IronPython.Runtime;
-using ComponentAce.Compression.Libs.ZLib;
 using IronPython.Runtime.Operations;
 
 namespace IronPython.Zlib
             }
             else if(err != Z_OK && err != Z_BUF_ERROR)
             {
-                throw new ZStreamException("deflate error");
+                throw ZlibModule.MakeError("deflate error");
             }
 
             return ZlibModule.Latin1.GetString(output, 0, (int)(zst.total_out - start_total_out));