rana-cli/tests/samples/codefiles/python.py

37 lines
672 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
2015-09-07 03:46:57 +00:00
# vim: set filetype=python
2015-09-16 19:57:49 +00:00
import os, sys
import django
2015-09-16 19:57:49 +00:00
from app import *
from flask import session
import simplejson as json
from . import privatemodule
2015-09-16 19:57:49 +00:00
from jinja import tags
from pygments.lexers import BaseLexer
from . import LocalClass
from . import MyClass as MyParser
from ..compat import u
from sqlalchemy import (
functions as sqlfunctions,
orm as sqlorm,
)
try:
from mock import ANY
except ImportError:
from unittest.mock import ANY
class MyClass(object):
"""this class
"""
def method1(self):
a = 1 + 2
b = 'hello world!'
for x in y:
print(x)
raise Exception()