Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Import consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jul 24, 2020
1 parent 268d14b commit 4ee6d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stage2/06-umbrel-details/files/umbrel-details
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import sys
import os
import time
import subprocess
from io import TextIOWrapper, BytesIO
import io
import qrcode

umbrel_ascii = '''
Expand All @@ -31,7 +31,7 @@ umbrel_ascii = '''
'''.strip('\n')

def create_qr(data):
output_buffer = TextIOWrapper(BytesIO(), sys.stdout.encoding)
output_buffer = io.TextIOWrapper(io.BytesIO(), sys.stdout.encoding)

qr = qrcode.QRCode(border=0, error_correction=qrcode.constants.ERROR_CORRECT_Q)
qr.add_data(data)
Expand Down

0 comments on commit 4ee6d63

Please sign in to comment.