• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ICRAR / ngas / 631
69%

Build:
DEFAULT BRANCH: master
Ran 31 May 2022 04:25AM UTC
Jobs 7
Files 165
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
631

push

travis-ci-com

Rodrigo Tobar
Use base64.b64{encode,decode} for python 3 support

The old {encode,decode}string functions were marked as deprecated in
python 3.1, and removed in python 3.9. We should use the corresponding
b64{encode,decode} functions instead, which are present in all relevant
python versions we support.

Note that in python 3 the b64{encode,decode} functions require bytes as
inputs, and output bytes (in python 3); we thus must take care of
encoding the arguments and decoding the outputs, while maintaining
python 2 compatibility.

Another small difference is that encodestring() returned a string that
always finished with a newline, which decodestring() handled correctly;
this is not the case with the b64{encode,decode} pair: b64encode()
doesn't append a newline, and b64decode() fails when a newline is
present at the end of its input. This won't have a noticeable effect
though: the encrypt_access_code function that issued the call to
encodestring() is never invoked anyway, and the strings given to
decrypt_access_code is always stripped (i.e., it won't contain
newlines).

This was originally reported in #89.

13673 of 19660 relevant lines covered (69.55%)

4.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 631.1 (DB=sqlite3) 31 May 2022 04:27AM UTC 0
69.22
Travis Job 631.1
2 631.2 (DB=mysql) 31 May 2022 04:27AM UTC 0
68.97
Travis Job 631.2
3 631.3 (DB=postgresql PGPORT=5433 PGUSER=travis) 31 May 2022 04:27AM UTC 0
69.01
Travis Job 631.3
4 631.4 31 May 2022 04:26AM UTC 0
69.33
Travis Job 631.4
5 631.5 31 May 2022 04:26AM UTC 0
69.32
Travis Job 631.5
6 631.6 31 May 2022 04:25AM UTC 0
69.46
Travis Job 631.6
7 631.7 31 May 2022 04:25AM UTC 0
69.41
Travis Job 631.7
Source Files on build 631
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #631
  • e1f7d70a on github
  • Prev Build on master (#629)
  • Next Build on master (#634)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc