Commit 04fe76cf authored by Stefan Behnel's avatar Stefan Behnel

fix string constant declarations for non CPython-version-specific strings

parent 9bc15191
......@@ -334,7 +334,9 @@ class StringConst(object):
self.py_versions = []
def add_py_version(self, version):
if version and version not in self.py_versions:
if not version:
self.py_versions = [2,3]
elif version not in self.py_versions:
self.py_versions.append(version)
def get_py_string_const(self, encoding, identifier=None,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment