Skip to content

Commit

Permalink
revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Jul 15, 2018
1 parent 5c2dfb5 commit a7d2f23
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import c_greet
import cpp_greet


def hello():
return '\n'.join([
c_greet.c_greet(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

from __future__ import absolute_import, division, print_function, unicode_literals


def hello():
return 'Hello, world!'
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os
from setuptools import setup, find_packages

# We require pycountry with setup_requires argument to this setup script's
# We require pycountry with setup_requires argument to this setup script's
# corresponding python_dist.
import pycountry

Expand Down
7 changes: 0 additions & 7 deletions src/python/pants/backend/python/tasks/setup_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import itertools
import os
import pprint
import re
import shutil
from abc import abstractmethod
from builtins import map, object, str, zip
Expand Down Expand Up @@ -168,12 +167,6 @@ class SetupPyExecutionEnvironment(datatype([
'linux': lambda: ['-shared'],
}

# A "local" extension to a version string, as per
# https://www.python.org/dev/peps/pep-0440/#local-version-identifiers
PEP_0440_DISALLOWED_LOCAL = re.compile(r'[^a-zA-Z0-9\.]')
# Replace all the disallowed characters with dots.
_local_version_replacer_char = '.'

def as_environment(self):
ret = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def get_generated_shared_lib(lib_name):
asdf_c_lib = ctypes.CDLL(asdf_c_lib_path)
asdf_cpp_lib = ctypes.CDLL(asdf_cpp_lib_path)


def f(x):
added = asdf_c_lib.add_three(x)
multiplied = asdf_cpp_lib.multiply_by_three(added)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import c_greet
import cpp_greet


def hello():
print(c_greet.c_greet())
print(cpp_greet.cpp_greet())

0 comments on commit a7d2f23

Please sign in to comment.