mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add future 0.18.2
This commit is contained in:
parent
08c8ee0774
commit
fa97d3f88d
210 changed files with 43159 additions and 0 deletions
18
lib/libfuturize/fixes/fix_unicode_literals_import.py
Normal file
18
lib/libfuturize/fixes/fix_unicode_literals_import.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
"""
|
||||
Adds this import:
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
"""
|
||||
|
||||
from lib2to3 import fixer_base
|
||||
from libfuturize.fixer_util import future_import
|
||||
|
||||
class FixUnicodeLiteralsImport(fixer_base.BaseFix):
|
||||
BM_compatible = True
|
||||
PATTERN = "file_input"
|
||||
|
||||
run_order = 9
|
||||
|
||||
def transform(self, node, results):
|
||||
future_import(u"unicode_literals", node)
|
Loading…
Add table
Add a link
Reference in a new issue