Skip to content

Commit a82a260

Browse files
authored
Just all to be allowed here
1 parent 91f6696 commit a82a260

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

buildozer/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,8 @@ def check_configuration_tokens(self):
159159
', required by "version.regex"')
160160

161161
orientation = self.config.getlist("app", "orientation", ["landscape"])
162-
if "all" in orientation:
163-
orientation = ["landscape", "portrait", "landscape-reverse", "portrait-reverse"]
164162
for o in orientation:
165-
if o not in ["landscape", "portrait", "landscape-reverse", "portrait-reverse"]:
163+
if o not in ("landscape", "portrait", "landscape-reverse", "portrait-reverse", "all"):
166164
adderror(f'[app] "{o}" is not a valid value for "orientation"')
167165
if errors:
168166
self.logger.error('{0} error(s) found in the buildozer.spec'.format(

0 commit comments

Comments
 (0)