Anonymous avatar Anonymous committed 5dfd721

Use the built-in vars, remove inspect.

Comments (0)

Files changed (1)

 __docformat__ = 'restructuredtext'
 
 
-import os, urllib, string, inspect
+import os, urllib, string
 from xml.dom import minidom
 
 
 def ItemSearch(Keywords, SearchIndex="Blended", Availability=None, Title=None, Power=None, BrowseNode=None, Artist=None, Author=None, Actor=None, Director=None, AudienceRating=None, Manufacturer=None, MusicLabel=None, Composer=None, Publisher=None, Brand=None, Conductor=None, Orchestra=None, TextStream=None, ItemPage=None, Sort=None, City=None, Cuisine=None, Neighborhood=None, MinimumPrice=None, MaximumPrice=None, MerchantId=None, Condition=None, DeliveryMethod=None, ResponseGroup=None, AWSAccessKeyId=None):  
 	'''ItemSearch in ECS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': (), 
 		'isPivoted': ('ItemAttributes',),
 	'''DOM representation of ItemSearch in ECS'''
 
 	Operation = "ItemSearch"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return query(buildRequest(argv))
+	return query(buildRequest(vars()))
 
 
 def SimilarityLookup(ItemId, SimilarityType=None, MerchantId=None, Condition=None, DeliveryMethod=None, ResponseGroup=None, AWSAccessKeyId=None):  
 	'''SimilarityLookup in ECS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': (), 
 		'isPivoted': ('ItemAttributes',),
 	'''DOM representation of SimilarityLookup in ECS'''
 
 	Operation = "SimilarityLookup"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return query(buildRequest(argv))
+	return query(buildRequest(vars()))
 
 
 # List Operations
 def ListLookup(ListType, ListId, ProductPage=None, ProductGroup=None, Sort=None, MerchantId=None, Condition=None, DeliveryMethod=None, ResponseGroup=None, AWSAccessKeyId=None):  
 	'''ListLookup in ECS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': (), 
 		'isPivoted': ('ItemAttributes',),
 	'''DOM representation of ListLookup in ECS'''
 
 	Operation = "ListLookup"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return query(buildRequest(argv))
+	return query(buildRequest(vars()))
 
 
 def ListSearch(ListType, Name=None, FirstName=None, LastName=None, Email=None, City=None, State=None, ListPage=None, ResponseGroup=None, AWSAccessKeyId=None):
 	'''ListSearch in ECS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': (), 
 		'isPivoted': ('ItemAttributes',),
 	'''DOM representation of ListSearch in ECS'''
 
 	Operation = "ListSearch"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return query(buildRequest(argv))
+	return query(buildRequest(vars()))
 
 
 #Remote Shopping Cart Operations
 def CartCreate(Items, Quantities, ResponseGroup=None, AWSAccessKeyId=None):
 	'''CartCreate in ECS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return __cartOperation(XMLCartCreate, argv)
+	return __cartOperation(XMLCartCreate, vars())
 
 
 def XMLCartCreate(Items, Quantities, ResponseGroup=None, AWSAccessKeyId=None):
 	'''DOM representation of CartCreate in ECS'''
 
 	Operation = "CartCreate"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	for x in ('Items', 'Quantities'):
 		del argv[x]
 
 def CartAdd(Cart, Items, Quantities, ResponseGroup=None, AWSAccessKeyId=None):
 	'''CartAdd in ECS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return __cartOperation(XMLCartAdd, argv)
+	return __cartOperation(XMLCartAdd, vars())
 
 
 def XMLCartAdd(Cart, Items, Quantities, ResponseGroup=None, AWSAccessKeyId=None):
 	Operation = "CartAdd"
 	CartId = Cart.CartId
 	HMAC = Cart.HMAC
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	for x in ('Items', 'Cart', 'Quantities'):
 		del argv[x]
 
 
 def CartGet(Cart, ResponseGroup=None, AWSAccessKeyId=None):
 	'''CartGet in ECS'''
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return __cartOperation(XMLCartGet, argv)
+	return __cartOperation(XMLCartGet, vars())
 
 
 def XMLCartGet(Cart, ResponseGroup=None, AWSAccessKeyId=None):
 	Operation = "CartGet"
 	CartId = Cart.CartId
 	HMAC = Cart.HMAC
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	del argv['Cart']
 	return query(buildRequest(argv))
 
 def CartModify(Cart, Items, Actions, ResponseGroup=None, AWSAccessKeyId=None):
 	'''CartModify in ECS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return __cartOperation(XMLCartModify, argv)
+	return __cartOperation(XMLCartModify, vars())
 
 
 def XMLCartModify(Cart, Items, Actions, ResponseGroup=None, AWSAccessKeyId=None):
 	Operation = "CartModify"
 	CartId = Cart.CartId
 	HMAC = Cart.HMAC
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	for x in ('Cart', 'Items', 'Actions'):
 		del argv[x]
 
 	
 def CartClear(Cart, ResponseGroup=None, AWSAccessKeyId=None):
 	'''CartClear in ECS'''
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return __cartOperation(XMLCartClear, argv)
+	return __cartOperation(XMLCartClear, vars())
 
 
 def XMLCartClear(Cart, ResponseGroup=None, AWSAccessKeyId=None):
 	Operation = "CartClear"
 	CartId = Cart.CartId
 	HMAC = Cart.HMAC
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	del argv['Cart']
 
 	return query(buildRequest(argv))
 def SellerLookup(Sellers, FeedbackPage=None, ResponseGroup=None, AWSAccessKeyId=None):
 	'''SellerLookup in AWS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': ('Request',),
 		'isPivoted': (), 
 
 	Operation = "SellerLookup"
 	SellerId = ",".join(Sellers)
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	del argv['Sellers']
 	return query(buildRequest(argv))
 
 	there is no ListingPage in the request, so we have to use rawIterator
 	instead of pagedIterator. Hope Amazaon would fix this inconsistance'''
 	
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': ('Request',),
 		'isPivoted': (), 
 	'''DOM representation of SellerListingLookup in AWS'''
 
 	Operation = "SellerListingLookup"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return query(buildRequest(argv))
+	return query(buildRequest(vars()))
 
 
 def SellerListingSearch(SellerId, Title=None, Sort=None, ListingPage=None, OfferStatus=None, ResponseGroup=None, AWSAccessKeyId=None):
 	'''SellerListingSearch in AWS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': ('Request',),
 		'isPivoted': (), 
 	'''DOM representation of SellerListingSearch in AWS'''
 
 	Operation = "SellerListingSearch"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return query(buildRequest(argv))
+	return query(buildRequest(vars()))
 
 
 def CustomerContentSearch(Name=None, Email=None, CustomerPage=1, ResponseGroup=None, AWSAccessKeyId=None):
 	'''CustomerContentSearch in AWS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': ('Request',),
 		'isPivoted': (), 
 	'''DOM representation of CustomerContentSearch in AWS'''
 
 	Operation = "CustomerContentSearch"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	for x in ('Name', 'Email'):
 		if not argv[x]:
 			del argv[x]
 def CustomerContentLookup(CustomerId, ReviewPage=1, ResponseGroup=None, AWSAccessKeyId=None):
 	'''CustomerContentLookup in AWS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': ('Request',),
 		'isPivoted': (), 
 	'''DOM representation of CustomerContentLookup in AWS'''
 
 	Operation = "CustomerContentLookup"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return query(buildRequest(argv))
+	return query(buildRequest(vars()))
 
 
 # BrowseNode
 	BrowseNodeLookup in AWS 
 	"""
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': ('Request',),
 		'isPivoted': (), 
 	'''DOM representation of BrowseNodeLookup in AWS'''
 	
 	Operation = "BrowseNodeLookup"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return query(buildRequest(argv))
+	return query(buildRequest(vars()))
 
 
 # Help
 def Help(HelpType, About, ResponseGroup=None, AWSAccessKeyId=None):
 	'''Help in AWS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': ('Request',), 
 		'isPivoted': (), 
 	'''DOM representation of Help in AWS'''
 
 	Operation = "Help"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return query(buildRequest(argv))
+	return query(buildRequest(vars()))
 
 
 # Transaction
 def TransactionLookup(TransactionId, ResponseGroup=None, AWSAccessKeyId=None):
 	'''TransactionLookup in AWS'''
 
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
+	argv = vars()
 	plugins = {
 		'isBypassed': ('Request',), 
 		'isPivoted': (), 
 	'''DOM representation of TransactionLookup in AWS'''
 
 	Operation = "TransactionLookup"
-	argv = inspect.getargvalues(inspect.currentframe())[-1]
-	return query(buildRequest(argv))
+	return query(buildRequest(vars()))
 
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.