Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use reset for PHP

use proper exception param for python test
  • Loading branch information...
commit 52026ef47e9e03b97bca64565f22cc6d41582403 1 parent 5b705db
jr conlin authored
Showing with 14 additions and 3 deletions.
  1. +1 −2  php/index.php
  2. +12 −0 python/Makefile
  3. +1 −1  python/OAuthSimple/tests.py
View
3  php/index.php
@@ -35,8 +35,7 @@
# Test 2 =====
- $oauth=null;
- $oauth = new OAuthSimple($apiKey,$sharedSecret);
+ $oauth->reset();
$sample2Results = $oauth->sign(Array('action'=>'GET',
'path'=>$path,
'parameters'=>$argumentsAsObject));
View
12 python/Makefile
@@ -0,0 +1,12 @@
+TOP = $(shell pwd)
+VE = virtualenv
+PY = $(TOP)/bin/python
+EZ = $(TOP)/bin/easy_install
+
+.PHONY: build build-egg
+
+build:
+ $(VE) --no-site-packages .
+
+build-egg:
+ $(PY) setup.py bdist_egg -dist-dir dist
View
2  python/OAuthSimple/tests.py
@@ -43,7 +43,7 @@ def testSimple(self):
# send the link.
try:
rsp=urllib2.urlopen(signed.get('signed_url'))
- except urllib2.HTTPError as ex:
+ except urllib2.HTTPError, ex:
if (ex.headers.get('x-mashery-error-code') ==
'ERR_401_TIMESTAMP_IS_INVALID'):
print "Your clock is off. Check and retry."
Please sign in to comment.
Something went wrong with that request. Please try again.