Selaa lähdekoodia

opentuner fix

demo.masouros 4 vuotta sitten
vanhempi
commit
34b98a30c3
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      src/python/README.md

+ 3 - 3
src/python/README.md

@@ -1,6 +1,6 @@
 When running the script, you might get the following error:
 ```bash
-[200~TypeError: Unicode-objects must be encoded before hashing
+TypeError: Unicode-objects must be encoded before hashing
 ```
 To fix this, first locate the installation path of opentuner package:
 ```bash
@@ -9,6 +9,6 @@ python3 -c "import opentuner; print(opentuner.__file__)"
 Then edit the following line in file `search/manipulator.py`
 ```diff
 @@ 858c858 @@
--  return hashlib.sha256(repr(self.get_value(config)).encode('utf-8')).hexdigest().encode('utf-8')
-+  return hashlib.sha256(repr(self.get_value(config)).encode('utf-8')).hexdigest().encode('utf-8')
+- return hashlib.sha256(repr(self.get_value(config)).encode('utf-8')).hexdigest().encode('utf-8') 
++ return hashlib.sha256(repr(self.get_value(config)).encode('utf-8')).hexdigest().encode('utf-8')
 ```