Skip to content

Commit

Permalink
Fix for ClassVar bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JdeH committed Aug 30, 2018
1 parent 2a65762 commit 6020c86
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3,255 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys

sys.path.append ('transcrypt/modules/org/transcrypt')
import __base__

from setuptools import setup

Expand All @@ -12,7 +11,7 @@ def read (*paths):

setup (
name = 'Transcrypt',
version = __base__.__envir__.transpiler_version,
version = '3.7.2',
description = 'Python to JavaScript transpiler, supporting multiple inheritance and generating lean, highly readable code',
long_description = (
read ('README.rst')
Expand Down
2 changes: 1 addition & 1 deletion transcrypt/modules/org/transcrypt/__envir__.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__envir__.interpreter_name = 'python';
__envir__.transpiler_name = 'transcrypt';
__envir__.executor_name = __envir__.transpiler_name;
__envir__.transpiler_version = '3.7.1';
__envir__.transpiler_version = '3.7.2';

4 changes: 1 addition & 3 deletions transcrypt/modules/org/transcrypt/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1853,9 +1853,7 @@ def visit_ClassDef (self, node):
elif type (statement.target) == ast.Name:
try:
# Simple class var assignment
inlineAssigns.append (statement)
if isDataClass:
reprAssigns.append (statement)
inlineAssigns.append (statement)
self.emitComma (index, False)
self.emit ('\n{}: ', self.filterId (statement.target.id))
self.visit (statement.value)
Expand Down
Loading

0 comments on commit 6020c86

Please sign in to comment.