From 3ceac0e1589bd7949a619d5fb3a452355c91761d Mon Sep 17 00:00:00 2001 From: Shmuel Kallner Date: Fri, 19 Feb 2016 11:14:49 -0600 Subject: [PATCH] Changed import of sys to import of KituraSys --- Sources/Redis.swift | 2 +- Sources/RedisMisc.swift | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Sources/Redis.swift b/Sources/Redis.swift index ecb46c7..e6b9356 100644 --- a/Sources/Redis.swift +++ b/Sources/Redis.swift @@ -14,7 +14,7 @@ * limitations under the License. **/ -import sys +import KituraSys import hiredis diff --git a/Sources/RedisMisc.swift b/Sources/RedisMisc.swift index 04e2dc8..0cab5ea 100644 --- a/Sources/RedisMisc.swift +++ b/Sources/RedisMisc.swift @@ -14,30 +14,30 @@ * limitations under the License. **/ -import sys +import KituraSys import Foundation public class RedisString { private let data: NSData - + public init(_ data: NSData) { self.data = data } - + public convenience init(_ value: String) { self.init(StringUtils.toUtf8String(value)!) } - + public convenience init(_ value: Int) { self.init(String(value)) } - + public convenience init(_ value: Double) { self.init(String(value)) } - + public var asData: NSData { return data } public var asString: String { return NSString(data: data, encoding: NSUTF8StringEncoding)!.bridge() } public var asInteger: Int { return Int(self.asString)! }