Author: tomaz
Date: Sun May 13 04:07:13 2012
New Revision: 1337770
URL: http://svn.apache.org/viewvc?rev=1337770&view=rev
Log:
Fix some fatal pyflakes issues.
Modified:
libcloud/trunk/libcloud/common/base.py
libcloud/trunk/libcloud/common/gandi.py
libcloud/trunk/libcloud/compute/drivers/softlayer.py
libcloud/trunk/libcloud/loadbalancer/drivers/gogrid.py
Modified: libcloud/trunk/libcloud/common/base.py
URL:
http://svn.apache.org/viewvc/libcloud/trunk/libcloud/common/base.py?rev=1337770&r1=1337769&r2=1337770&view=diff
==============================================================================
--- libcloud/trunk/libcloud/common/base.py (original)
+++ libcloud/trunk/libcloud/common/base.py Sun May 13 04:07:13 2012
@@ -249,7 +249,6 @@ class LoggingConnection():
return cls(b(self.s))
rr = r
- original_data = body
headers = lowercase_keys(dict(r.getheaders()))
encoding = headers.get('content-encoding', None)
Modified: libcloud/trunk/libcloud/common/gandi.py
URL:
http://svn.apache.org/viewvc/libcloud/trunk/libcloud/common/gandi.py?rev=1337770&r1=1337769&r2=1337770&view=diff
==============================================================================
--- libcloud/trunk/libcloud/common/gandi.py (original)
+++ libcloud/trunk/libcloud/common/gandi.py Sun May 13 04:07:13 2012
@@ -18,6 +18,7 @@ Gandi driver base classes
import time
import hashlib
+import sys
from libcloud.utils.py3 import xmlrpclib
from libcloud.utils.py3 import b
Modified: libcloud/trunk/libcloud/compute/drivers/softlayer.py
URL:
http://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/drivers/softlayer.py?rev=1337770&r1=1337769&r2=1337770&view=diff
==============================================================================
--- libcloud/trunk/libcloud/compute/drivers/softlayer.py (original)
+++ libcloud/trunk/libcloud/compute/drivers/softlayer.py Sun May 13 04:07:13
2012
@@ -16,6 +16,7 @@
Softlayer driver
"""
+import sys
import time
import libcloud
Modified: libcloud/trunk/libcloud/loadbalancer/drivers/gogrid.py
URL:
http://svn.apache.org/viewvc/libcloud/trunk/libcloud/loadbalancer/drivers/gogrid.py?rev=1337770&r1=1337769&r2=1337770&view=diff
==============================================================================
--- libcloud/trunk/libcloud/loadbalancer/drivers/gogrid.py (original)
+++ libcloud/trunk/libcloud/loadbalancer/drivers/gogrid.py Sun May 13 04:07:13
2012
@@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+import sys
import time
+
from libcloud.utils.py3 import httplib
try:
@@ -177,7 +179,7 @@ class GoGridLBDriver(BaseGoGridDriver, D
if "Update already pending" in str(e):
raise LibcloudLBImmutableError("Balancer is immutable",
GoGridLBDriver)
- raise LibcloudError(value='Exception: %s' % str(err), driver=self)
+ raise LibcloudError(value='Exception: %s' % str(e), driver=self)
def _members_to_params(self, members):
"""