Merge pull request #2924 from SomberNight/py3_exchange_rate
python3: exchange_rate.py
This commit is contained in:
@@ -90,7 +90,7 @@ class ExchangeBase(PrintError):
|
|||||||
|
|
||||||
def get_currencies(self):
|
def get_currencies(self):
|
||||||
rates = self.get_rates('')
|
rates = self.get_rates('')
|
||||||
return sorted([str(a) for (a, b) in rates.iteritems() if b is not None and len(a)==3])
|
return sorted([str(a) for (a, b) in rates.items() if b is not None and len(a)==3])
|
||||||
|
|
||||||
|
|
||||||
class BitcoinAverage(ExchangeBase):
|
class BitcoinAverage(ExchangeBase):
|
||||||
|
|||||||
Reference in New Issue
Block a user