Skip to content

Commit ebd876b

Browse files
committed
docs: add french example
1 parent 65cc201 commit ebd876b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

test/samples/fr/hello.fr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
imprimer("hello world")

universalpython/universalpython.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ def main():
174174
with open(filename) as code_pyfile:
175175
code = code_pyfile.read()
176176

177+
# Default mode is 'lex' if not specified
178+
mode = args.get('mode', 'lex')
179+
177180
return run_module(mode, code, args)
178181

179182
if __name__ == "__main__":

0 commit comments

Comments
 (0)