mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-23 01:18:12 -07:00
Merge branch 'ofw-dev' into xfw-dev
This commit is contained in:
+5
-7
@@ -1,14 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import operator
|
||||
from functools import reduce
|
||||
|
||||
from flipper.app import App
|
||||
from flipper.storage import FlipperStorage, FlipperStorageOperations
|
||||
from flipper.utils.cdc import resolve_port
|
||||
|
||||
import os
|
||||
import posixpath
|
||||
from functools import reduce
|
||||
import operator
|
||||
|
||||
|
||||
class Main(App):
|
||||
def init(self):
|
||||
@@ -38,8 +36,8 @@ class Main(App):
|
||||
self.parser.set_defaults(func=self.install)
|
||||
|
||||
@staticmethod
|
||||
def flatten(l):
|
||||
return reduce(operator.concat, l, [])
|
||||
def flatten(item_list):
|
||||
return reduce(operator.concat, item_list, [])
|
||||
|
||||
def install(self):
|
||||
self.args.sources = self.flatten(self.args.sources)
|
||||
|
||||
Reference in New Issue
Block a user