Also
- Make import zmq error fatal again (instead of silent ignore)
- Make
fix-copyright-headers.pymore portable
Also
fix-copyright-headers.py more portable
Reported by pryds on Transifex in the Danish translation.
Example of comments being of by one: https://dev.visucore.com/bitcoin/doxygen/chain_8h.html#a0d8c285f70a59a32f4f6ab41b78f93ada722a05d892a13ada5ffd4fcbbef837cd
ACK
50 | @@ -51,7 +51,7 @@ class MutableTransactionSignatureCreator : public TransactionSignatureCreator { 51 | MutableTransactionSignatureCreator(const CKeyStore* keystoreIn, const CMutableTransaction* txToIn, unsigned int nInIn, const CAmount& amount, int nHashTypeIn) : TransactionSignatureCreator(keystoreIn, &tx, nInIn, amount, nHashTypeIn), tx(*txToIn) {} 52 | }; 53 | 54 | -/** A signature creator that just produces 72-byte empty signatyres. */
SignaTyres™
15 | @@ -16,7 +16,7 @@ 16 | import re 17 | 18 | year = time.gmtime()[0] 19 | -CMD_GIT_DATE = 'git log --format=@%%at -1 %s | date +"%%Y" -u -f -' 20 | +CMD_GIT_DATE = 'git log --format=%%ad --date=short -1 %s | cut -d"-" -f 1'
Whyy oh whyy are we using shell commands in a python script? (no need to fix in this pull, but all those string operations could just be done in Python, more portable and potentially more secure, no shell calls means no shell escapes)
Oh I should have read on. A few lines down we're even calling perl from Python.
Lazy<sup>TM</sup> and ItWorks<sup>TM</sup>, also you need to call at least git to make this script work. Though, I agree that calling perl is not required. (I won't change it in this pull, though.)
Make it go full circle. Perl should call Python.
LazyTM and ItWorksTM, also you need to call at least git to make this script work.
You don't need to call it through the shell though. Popen, by default, just invokes the process directly. See e.g. how github-merge.py interacts with git.
utACK
utACK