blob: 7055927756bb7ea44d218e15bd469745c323e351 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
Index: pycryptopp/src/pycryptopp/test/__init__.py
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ pycryptopp/src/pycryptopp/test/__init__.py 2013-08-22 16:45:30.747903892 -0400
@@ -0,0 +1,7 @@
+import os
+
+def resource_string(package_or_requirement, resource_name):
+ return file(os.path.join("/usr/share/python-pycryptopp/%s" % resource_name)).read()
+
+def resource_listdir(package_or_requirement, resource_name):
+ return os.listdir("/usr/share/python-pycryptopp/%s" % resource_name)
Index: pycryptopp/src/pycryptopp/test/test_aes.py
===================================================================
--- pycryptopp.orig/src/pycryptopp/test/test_aes.py 2013-08-22 16:39:52.488938601 -0400
+++ pycryptopp/src/pycryptopp/test/test_aes.py 2013-08-22 16:46:22.438522135 -0400
@@ -11,7 +11,7 @@
from pycryptopp.cipher import aes
-from pkg_resources import resource_string, resource_listdir
+from pycryptopp.test import resource_string, resource_listdir
from base64 import b32encode
def ab(x): # debuggery
Index: pycryptopp/src/pycryptopp/test/test_sha256.py
===================================================================
--- pycryptopp.orig/src/pycryptopp/test/test_sha256.py 2013-08-22 16:39:52.488938601 -0400
+++ pycryptopp/src/pycryptopp/test/test_sha256.py 2013-08-22 16:46:40.282045087 -0400
@@ -11,7 +11,7 @@
from pycryptopp.hash import sha256
-from pkg_resources import resource_string
+from pycryptopp.test import resource_string
def resource_string_lines(pkgname, resname):
return split_on_newlines(resource_string(pkgname, resname))
|