diff --git a/PKG-INFO b/PKG-INFO
index 386f308d8..a017f83dc 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -4,5 +4,5 @@ Author: Martin Blais
Author-Email: blais@furius.ca
ChangeLog: http://furius.ca/beancount/CHANGES
Bugs-Reporting: mailto:blais@furius.ca
-Download-Snapshots: http://bitbucket.org/blais/beancount
+Download-Snapshots: https://bitbucket.org/blais/beancount
License: GNU GPLv2 only
diff --git a/README b/README
index e52c81cc5..417d2f238 100644
--- a/README
+++ b/README
@@ -42,7 +42,7 @@ Download & Installation
You can obtain the source code from the official Mercurial repository on
BitBucket:
- | http://bitbucket.org/blais/beancount/
+ | https://bitbucket.org/blais/beancount/
See the `Installing Beancount`__ document for more details.
@@ -54,7 +54,7 @@ Filing Bugs
Tickets can be filed at on the BitBucket project page:
- http://bitbucket.org/blais/beancount/issues
+ https://bitbucket.org/blais/beancount/issues
Copyright and License
diff --git a/TODO b/TODO
index 98ad1f1f5..5a1161417 100644
--- a/TODO
+++ b/TODO
@@ -3862,7 +3862,7 @@ http://furius.ca/beancount/doc/proposal-query
- Make the parser reentrant [2014-08-02]. This is _not_ a difficult task.
* Follow this:
- http://www.lemoda.net/c/reentrant-parser/
+ https://www.lemoda.net/c/reentrant-parser/
http://flex.sourceforge.net/manual/Extra-Data.html
to remove all globals from my lexer and make it truly reentrant and free of globals.
@@ -3877,7 +3877,7 @@ http://furius.ca/beancount/doc/proposal-query
You also need to redefine yyerror() accordingly. I've done it and it
works, it's simple, it's a 20 minute change:
- http://www.gnu.org/software/bison/manual/html_node/Parser-Function.html
+ https://www.gnu.org/software/bison/manual/html_node/Parser-Function.html
* You also need to make the lexer reentrant:
http://flex.sourceforge.net/manual/Reentrant-Overview.html#Reentrant-Overview
@@ -4037,7 +4037,7 @@ http://furius.ca/beancount/doc/proposal-query
** Financial Ratio Analysis
- - Add these: http://www.csun.edu/~bjc20362/Controlling-2.pdf
+ - Add these: https://www.csun.edu/~bjc20362/Controlling-2.pdf
** Trades
@@ -4229,7 +4229,7 @@ http://furius.ca/beancount/doc/proposal-query
- Move the TreeMaps experimental script for Expenses and Assets subtrees into
the bean-web codebase:
- http://bost.ocks.org/mike/treemap/
+ https://bost.ocks.org/mike/treemap/
(Or maybe that would just be left for fava.)
** Rendering Documents
diff --git a/appveyor.yml b/appveyor.yml
index b7e3f2257..add2813b3 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -3,7 +3,7 @@ environment:
matrix:
# For Python versions available on Appveyor, see
- # http://www.appveyor.com/docs/installed-software#python
+ # https://www.appveyor.com/docs/installed-software#python
# The list here is complete (excluding Python 2.6, which
# isn't covered by this document) at the time of writing.
diff --git a/beancount/parser/grammar.y b/beancount/parser/grammar.y
index 87136f967..7e5721ff0 100644
--- a/beancount/parser/grammar.y
+++ b/beancount/parser/grammar.y
@@ -240,7 +240,7 @@ const char* getTokenName(int token);
/* Operator precedence.
* This is pulled straight out of the textbook example:
- * http://www.gnu.org/software/bison/manual/html_node/Infix-Calc.html#Infix-Calc
+ * https://www.gnu.org/software/bison/manual/html_node/Infix-Calc.html#Infix-Calc
*/
%left MINUS PLUS
%left ASTERISK SLASH
diff --git a/beancount/prices/sources/oanda.py b/beancount/prices/sources/oanda.py
index cf958c5d9..3eea2a13c 100644
--- a/beancount/prices/sources/oanda.py
+++ b/beancount/prices/sources/oanda.py
@@ -3,7 +3,7 @@
Valid tickers are in the form "XXX_YYY", such as "EUR_USD".
Here is the API documentation:
-http://developer.oanda.com/rest-live/rates/
+https://developer.oanda.com/rest-live/rates/
For example:
https://api-fxtrade.oanda.com/v1/candles?instrument=EUR_USD&granularity=D&start=2016-03-27T00%3A00%3A00Z&end=2016-04-04T00%3A00%3A00Z&candleFormat=midpoint
diff --git a/beancount/reports/gviz.py b/beancount/reports/gviz.py
index bb7f5d10d..bf92e0a6b 100644
--- a/beancount/reports/gviz.py
+++ b/beancount/reports/gviz.py
@@ -27,7 +27,7 @@ def gviz_timeline(time_array, data_array_map, css_id='chart'):
# Write preamble.
oss = io.StringIO()
- oss.write('\n')
oss.write('