Skip to content

Commit 91c5d9a

Browse files
committed
micropython/mip__init__: Optimize for code size.
17 bytes reduced. Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com> Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
1 parent 200e8d1 commit 91c5d9a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

micropython/mip/mip/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# MicroPython package installer
22
# MIT license; Copyright (c) 2022 Jim Mussared
33

4-
from micropython import const
5-
import requests
64
import sys
75

6+
import requests
7+
8+
from micropython import const
89

910
_PACKAGE_INDEX = const("https://micropython.org/pi/v2")
10-
_CHUNK_SIZE = 128
11+
_CHUNK_SIZE = const(128)
1112

1213
allowed_mip_url_prefixes = ("http://", "https://", "github:", "gitlab:")
1314

0 commit comments

Comments
 (0)