summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2018-05-12 22:07:47 +0000
committerminskim <minskim@pkgsrc.org>2018-05-12 22:07:47 +0000
commitc8ce10124bd2376e0c0e39e82bf3ef5f98a56012 (patch)
tree7f82c1d3ff4355d65f6d8859dc366cbef1830a1d
parent140e686b64a0b7be0e0950712fc96f4d29ef9f4b (diff)
downloadpkgsrc-c8ce10124bd2376e0c0e39e82bf3ef5f98a56012.tar.gz
finance/py-bracktrader: Add a patch to fix a typo
-rw-r--r--finance/py-backtrader/patches/patch-backtrader_datacache.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/finance/py-backtrader/patches/patch-backtrader_datacache.py b/finance/py-backtrader/patches/patch-backtrader_datacache.py
new file mode 100644
index 00000000000..88671628ed6
--- /dev/null
+++ b/finance/py-backtrader/patches/patch-backtrader_datacache.py
@@ -0,0 +1,24 @@
+$NetBSD: patch-backtrader_datacache.py,v 1.1 2018/05/12 22:07:47 minskim Exp $
+
+Fix typos.
+
+--- backtrader/datacache.py.orig 2017-08-04 12:13:07.000000000 +0000
++++ backtrader/datacache.py
+@@ -55,7 +55,7 @@ class BaseCache(bt.LineSeries):
+
+
+ if True:
+- impor os
++ import os
+ import os.path
+ import sqlite3
+
+@@ -77,7 +77,7 @@ def CacheSQLite(BaseCache):
+
+ else:
+ path = os.getenv('XDG_CACHE_HOME', os.path.expanduser('~/.cache'))
+- path os.path.join(path, self.p.appname)
++ path = os.path.join(path, self.p.appname)
+
+ path = os.path.join(path, self.p.location,
+ bt.TimeFrame.TName(self.p.timeframe),