Skip to content

Commit f4cda72

Browse files
committed
test fix 1
1 parent a7c3348 commit f4cda72

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Each release, on the other hand, is preceded by at least the following tests:
121121
What's new in the latest commits
122122
================================
123123

124+
- Compilation error reports fixed (pr584, issue 586)
124125
- Module paths can now contain dots (issue 578 revisited)
125126
- Module name can be reexported (pr 575)
126127
- Exported vars can contain $ (issue 578)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def read (*paths):
1111

1212
setup (
1313
name = 'Transcrypt',
14-
version = '3.7.10',
14+
version = '3.7.11',
1515
description = 'Python to JavaScript transpiler, supporting multiple inheritance and generating lean, highly readable code',
1616
long_description = (
1717
read ('README.rst')
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
__envir__.interpreter_name = 'python';
22
__envir__.transpiler_name = 'transcrypt';
33
__envir__.executor_name = __envir__.transpiler_name;
4-
__envir__.transpiler_version = '3.7.10';
4+
__envir__.transpiler_version = '3.7.11';

transcrypt/modules/org/transcrypt/compiler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2905,7 +2905,9 @@ def revisit_ImportFrom (self, importHoistMemo): # From ... import ... can import
29052905
module = self.useModule ('{}.{}'.format (node.module, alias.name)) # So, attempt to use alias as a module
29062906
self.emit ('import * as {} from \'{}\';\n', self.filterId (alias.asname) if alias.asname else self.filterId (alias.name), module.importRelPath) # Modules too can have asName
29072907
self.allImportedNames.add (alias.asname or alias.name) # Add import to allImportedNames of this module
2908-
except:
2908+
except: # It's a facility rather than a module
2909+
module = self.useModule (node.module)
2910+
namePairs.append (utils.Any (name = alias.name, asName = alias.asname))
29092911
facilityImported = True
29102912

29112913
if facilityImported: # At least one alias denoted a facility rather than a module

0 commit comments

Comments
 (0)