/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos

  • Committer: teddy at recompile
  • Date: 2019-12-04 23:35:08 UTC
  • Revision ID: teddy@recompile.se-20191204233508-npy5ss0cd3q23x9v
Minor refactor of Python code: Move "str = unicode" to top

* mandos: Move "str = unicode" to top of file.
* mandos-ctl: - '' -

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
if sys.version_info.major == 2:
93
93
    __metaclass__ = type
 
94
    str = unicode
94
95
 
95
96
# Show warnings by default
96
97
if not sys.warnoptions:
122
123
            # No value found
123
124
            SO_BINDTODEVICE = None
124
125
 
125
 
if sys.version_info.major == 2:
126
 
    str = unicode
127
 
 
128
126
if sys.version_info < (3, 2):
129
127
    configparser.Configparser = configparser.SafeConfigParser
130
128