diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/future/tests/test_object.py b/future/tests/test_object.py index <HASH>..<HASH> 100644 --- a/future/tests/test_object.py +++ b/future/tests/test_object.py @@ -162,6 +162,7 @@ class TestNewObject(unittest.TestCase): self.assertFalse(isinstance(b, C)) self.assertTrue(isinstance(c, C)) + ...
Add @expectedFailure for known failure of isinstance(..., newobject)
py
diff --git a/salt/serializers/configparser.py b/salt/serializers/configparser.py index <HASH>..<HASH> 100644 --- a/salt/serializers/configparser.py +++ b/salt/serializers/configparser.py @@ -85,15 +85,28 @@ def serialize(obj, **options): raise SerializationError(error) -def _read_dict(configparser, diction...
Made interaction with [DEFAULT] section in ConfigParser as sane as upstream permits.
py
diff --git a/djangodblog/manager.py b/djangodblog/manager.py index <HASH>..<HASH> 100644 --- a/djangodblog/manager.py +++ b/djangodblog/manager.py @@ -134,7 +134,10 @@ class DBLogManager(models.Manager): elif isinstance(f, (list, tuple)): f = [to_unicode(f) for f in f] else: -...
Gracefully fail when we're unable to encode something
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,8 @@ setup( 'redis', 'elasticsearch', 'boto3', - 'PrettyTable' + 'PrettyTable', + 'jinja2==2.10' ], python_requires='>=3', classifiers=[
Added jinja2 as a dependency
py
diff --git a/server.py b/server.py index <HASH>..<HASH> 100644 --- a/server.py +++ b/server.py @@ -41,7 +41,7 @@ class OpenIDServer(object): except _ProtocolError, (redirect, message): if redirect and 'return_to' in args: err = { - 'openid.mode': 'error' + ...
[project @ typo fix, and make spychecker happy for the moment.]
py
diff --git a/tests/unit_project/test_core/test_placement.py b/tests/unit_project/test_core/test_placement.py index <HASH>..<HASH> 100644 --- a/tests/unit_project/test_core/test_placement.py +++ b/tests/unit_project/test_core/test_placement.py @@ -36,6 +36,7 @@ class TestPlacement(DatabaseTestCase): perex=u...
another test for placement's url
py
diff --git a/elasticsearch_dsl/filter.py b/elasticsearch_dsl/filter.py index <HASH>..<HASH> 100644 --- a/elasticsearch_dsl/filter.py +++ b/elasticsearch_dsl/filter.py @@ -80,12 +80,9 @@ class Bool(BoolMixin, Filter): if self.should and other.should: selfshould, othershould = self.should[:]...
Cleaner code for filter __and__
py
diff --git a/tests/test_solver.py b/tests/test_solver.py index <HASH>..<HASH> 100644 --- a/tests/test_solver.py +++ b/tests/test_solver.py @@ -220,7 +220,16 @@ def test_composite_solver(): nose.tools.assert_equal(len(s._solver_list), 4) # the CONCRETE one nose.tools.assert_false(s.satisfiable()) +def test_m...
adding a test for the crazy issue i just fixed -- just tests min and max
py
diff --git a/tldr.py b/tldr.py index <HASH>..<HASH> 100644 --- a/tldr.py +++ b/tldr.py @@ -17,8 +17,8 @@ from six.moves import map import colorama colorama.init() -USE_CACHE = int(os.environ.get('TLDR_USE_CACHE', '1')) > 0 -MAX_CACHE_AGE = int(os.environ.get('TLDR_MAX_CACHE_AGE', 24)) +USE_CACHE = int(os.environ.ge...
use-cache: changed cache configuration environment variables names
py
diff --git a/salt/modules/timezone.py b/salt/modules/timezone.py index <HASH>..<HASH> 100644 --- a/salt/modules/timezone.py +++ b/salt/modules/timezone.py @@ -160,7 +160,7 @@ def get_hwclock(): elif 'Debian' in __grains__['os_family']: cmd = 'grep "UTC=" /etc/default/rcS | grep -vE "^#"' out = __...
/etc/default/rcS file does not contain UTC boolean value on Debian Wheezy, causes out-of-bounds exception when attempting to lookup given value
py
diff --git a/pyathena/result_set.py b/pyathena/result_set.py index <HASH>..<HASH> 100644 --- a/pyathena/result_set.py +++ b/pyathena/result_set.py @@ -259,7 +259,7 @@ class AthenaResultSet(CursorIterator): self._connection = None self._query_execution = None self._meta_data = None - se...
Fix Incompatible types in assignment (expression has type "None", variable has type "deque[Any]")
py
diff --git a/pkg_resources/extern/__init__.py b/pkg_resources/extern/__init__.py index <HASH>..<HASH> 100644 --- a/pkg_resources/extern/__init__.py +++ b/pkg_resources/extern/__init__.py @@ -29,7 +29,10 @@ class VendorImporter: for prefix in self.search_path: try: __import__(prefi...
Based on experimentation, the canonical module name needs to be in sys.modules on Python prior to <I>, but must be omitted on Python <I> and later. --HG-- branch : feature/issue-<I>
py
diff --git a/microcosm_flask/conventions/base.py b/microcosm_flask/conventions/base.py index <HASH>..<HASH> 100644 --- a/microcosm_flask/conventions/base.py +++ b/microcosm_flask/conventions/base.py @@ -52,9 +52,10 @@ class Convention(object): try: configure_func = self._find_func(operat...
Don't swallow AttributeError from the handler invocation
py
diff --git a/app/settings.py b/app/settings.py index <HASH>..<HASH> 100644 --- a/app/settings.py +++ b/app/settings.py @@ -150,9 +150,10 @@ INSTALLED_APPS = ( 'django.contrib.staticfiles', 'django.contrib.admin', 'django_extensions', + 'rest_framework', + 'rest_framework.authtoken', 'timeside....
Secure Timeside web API through Token and Session Authentification
py
diff --git a/grab/spider/base.py b/grab/spider/base.py index <HASH>..<HASH> 100644 --- a/grab/spider/base.py +++ b/grab/spider/base.py @@ -684,7 +684,7 @@ class Spider(SpiderPattern, SpiderStat): qsize = self.taskq.qsize() else: qsize = self.taskq.size() - min_l...
Change lower limit of number in task queue when additional task generation is required
py
diff --git a/__init__.py b/__init__.py index <HASH>..<HASH> 100644 --- a/__init__.py +++ b/__init__.py @@ -77,7 +77,7 @@ def as_quat_array(a): definitions of the spinors. """ - a = np.asarray(a) + a = np.ascontiguousarray(a) assert a.dtype == np.dtype(np.float) if a.shape == (4,): r...
Make sure input to `as_quat_array` is contiguous Closes #<I>
py
diff --git a/can/__init__.py b/can/__init__.py index <HASH>..<HASH> 100644 --- a/can/__init__.py +++ b/can/__init__.py @@ -8,7 +8,7 @@ from __future__ import absolute_import import logging -__version__ = "3.2.0-a0" +__version__ = "3.2.0-a1" log = logging.getLogger('can')
Update version to alpha2 for release<I>
py
diff --git a/src/petl/test/test_profile.py b/src/petl/test/test_profile.py index <HASH>..<HASH> 100644 --- a/src/petl/test/test_profile.py +++ b/src/petl/test/test_profile.py @@ -146,5 +146,26 @@ def test_profile_types(): 'str': 1, ...
part-baked thoughts on profiling datetime types
py
diff --git a/tests/webapp/api/test_auth.py b/tests/webapp/api/test_auth.py index <HASH>..<HASH> 100644 --- a/tests/webapp/api/test_auth.py +++ b/tests/webapp/api/test_auth.py @@ -61,6 +61,14 @@ def test_get_hawk_unauthorized(client_credentials): 'found with id %s') % client_cred...
Bug <I> - test_auth.py: Add a test for POSTs with no auth Since currently only no-auth GETs are tested. In a later commit, the GET case will be made to succeed, since the test will instead use the `permissions_class` of `HasHawkPermissionsOrReadOnly`, which is actually what the rest of Treeherder uses.
py
diff --git a/jarn/mkrelease/mkrelease.py b/jarn/mkrelease/mkrelease.py index <HASH>..<HASH> 100644 --- a/jarn/mkrelease/mkrelease.py +++ b/jarn/mkrelease/mkrelease.py @@ -418,10 +418,13 @@ class ReleaseMaker(object): def main(args=None): if args is None: args = sys.argv[1:] - ReleaseMaker(args).run() ...
Only exit the interpreter if we run as main.
py
diff --git a/safe/common/polygon.py b/safe/common/polygon.py index <HASH>..<HASH> 100644 --- a/safe/common/polygon.py +++ b/safe/common/polygon.py @@ -509,8 +509,6 @@ def in_and_outside_polygon(points, polygon, # Add holde indices to outside outside = numpy.concatenate((outside, in_hole)) - ...
Removed unnecessary call to .sort()
py
diff --git a/dock/plugins/post_push_to_pulp.py b/dock/plugins/post_push_to_pulp.py index <HASH>..<HASH> 100644 --- a/dock/plugins/post_push_to_pulp.py +++ b/dock/plugins/post_push_to_pulp.py @@ -129,8 +129,8 @@ class PulpUploader(object): # Return the set of qualified repo names for this image retur...
Fix for repos_tags_mapping list comprehension now values are dict.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,8 +25,8 @@ from setuptools import setup setup(name='pyorbital', version="0.1", description='Orbital parameters and astronomical computations in Python', - author='Martin Raspaud', - author_email='m...
Added Esben in the author field.
py
diff --git a/src/pylexibank/commands/check.py b/src/pylexibank/commands/check.py index <HASH>..<HASH> 100644 --- a/src/pylexibank/commands/check.py +++ b/src/pylexibank/commands/check.py @@ -26,7 +26,7 @@ def check(args): "yellow" )) else: - if lang['Glottocode'] not in...
single glottolog lookup (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -66,9 +66,9 @@ def main(): 'indra.sources.index_cards', 'indra.sources.indra_db_rest', 'indra.sources.lincs_drug', 'indra.sources.ndex_cx', 'indra.sources.reach', ...
Preserve alphabetical order in setup packages
py
diff --git a/spyderlib/utils/vcs.py b/spyderlib/utils/vcs.py index <HASH>..<HASH> 100644 --- a/spyderlib/utils/vcs.py +++ b/spyderlib/utils/vcs.py @@ -10,7 +10,7 @@ import os import os.path as osp # Local imports -#from spyderlib.baseconfig import _ +from spyderlib.baseconfig import _ from spyderlib.utils imp...
vcs.py: Get back errorneously commented import
py
diff --git a/Python/phate/cluster.py b/Python/phate/cluster.py index <HASH>..<HASH> 100644 --- a/Python/phate/cluster.py +++ b/Python/phate/cluster.py @@ -2,7 +2,7 @@ import graphtools from sklearn import cluster, exceptions -def kmeans(phate_op, k=8): +def kmeans(phate_op, k=8, random_state=None): """KMeans ...
add random_state to cluster.kmeans
py
diff --git a/ford/__init__.py b/ford/__init__.py index <HASH>..<HASH> 100755 --- a/ford/__init__.py +++ b/ford/__init__.py @@ -628,11 +628,9 @@ def main(proj_data, proj_docs, md): def run(): proj_data, proj_docs, md = initialize() - if proj_data["quiet"]: - f = StringIO() - with stdout_redirect...
Reduce duplicated function call for `quiet` conditional
py
diff --git a/dp_tornado/helper/aws/s3.py b/dp_tornado/helper/aws/s3.py index <HASH>..<HASH> 100644 --- a/dp_tornado/helper/aws/s3.py +++ b/dp_tornado/helper/aws/s3.py @@ -97,6 +97,31 @@ class S3Helper(dpHelper): s3.upload_file(fp, bucket_name, key) + def copy(self, + aws_access_key_id, + ...
add copy object from s3 to s3.
py
diff --git a/sos/cleaner/__init__.py b/sos/cleaner/__init__.py index <HASH>..<HASH> 100644 --- a/sos/cleaner/__init__.py +++ b/sos/cleaner/__init__.py @@ -483,7 +483,7 @@ third party. file_list = archive.get_file_list() for fname in file_list: - short_name = fname.split(archiv...
[cleaner] Fix handling of filepath when archive name is in the filepath Fixes the splitting of filepaths within the archive, when the archive name is included in the filename inside the archive. Related: #<I>
py
diff --git a/GPy/models/GP.py b/GPy/models/GP.py index <HASH>..<HASH> 100644 --- a/GPy/models/GP.py +++ b/GPy/models/GP.py @@ -253,8 +253,9 @@ class GP(model): Xnew, xmin, xmax = x_frame1D(Xu, plot_limits=plot_limits) m, var, lower, upper = self.predict(Xnew, which_parts=which_parts) - ...
allowed GP models to plot multiple outputs (in 1D at least)
py
diff --git a/gcloud/datastore/test_key.py b/gcloud/datastore/test_key.py index <HASH>..<HASH> 100644 --- a/gcloud/datastore/test_key.py +++ b/gcloud/datastore/test_key.py @@ -19,8 +19,7 @@ class TestKey(unittest2.TestCase): pb.partition_id.namespace = namespace for elem in path: added...
<I>% branch coverage for gcloud.datastore.test_key. Don't worry about path elem w/o kind.
py
diff --git a/tests/test_generator.py b/tests/test_generator.py index <HASH>..<HASH> 100644 --- a/tests/test_generator.py +++ b/tests/test_generator.py @@ -209,7 +209,7 @@ def test_generate_iam(): ) iam_group = PROJECTS[project]['project'] - iam_lambda_role = '{0}_lambda_role'.format(iam_base)...
fixed test as well with lambda roles
py
diff --git a/pyArango/collection.py b/pyArango/collection.py index <HASH>..<HASH> 100644 --- a/pyArango/collection.py +++ b/pyArango/collection.py @@ -256,7 +256,14 @@ class Collection(object) : raise SchemaViolation(cls, fieldName) try : #if foreign field - return cls._fields[fieldName].validate(value) + ...
documents can now have one level of nesting with validation
py
diff --git a/octodns/record/__init__.py b/octodns/record/__init__.py index <HASH>..<HASH> 100644 --- a/octodns/record/__init__.py +++ b/octodns/record/__init__.py @@ -417,6 +417,7 @@ class _ValueMixin(object): class _DynamicPool(object): + log = getLogger('_DynamicPool') def __init__(self, _id, data): ...
log warning when non-1 weight is set for single-value pools
py
diff --git a/test/test_pynml.py b/test/test_pynml.py index <HASH>..<HASH> 100644 --- a/test/test_pynml.py +++ b/test/test_pynml.py @@ -11,11 +11,16 @@ Author: Ankur Sinha <sanjay DOT ankur AT gmail DOT com> import unittest import os import shutil +import logging from pyneuroml.pynml import (extract_lems_definitio...
improvement(tests): set default logging level for test
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ setup(name='confluent-kafka', author_email='support@confluent.io', url='https://github.com/confluentinc/confluent-kafka-python', ext_modules=[module], - packages=find_packages(exclude=(...
Exclude Avro tests from packaging Fixes #<I>, #<I> committing on the behalf of @hoefling
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( author_email='contact@onurbingol.net', license='MIT', url='https://github.com/orbingol/NURBS-Python', - packages=['nurbs'], + packages=['geomdl'], long_description=read('REA...
Rename the package name NURBS is a very common name and in order to avoid name conflicts, I renamed to *geomdl* which is the short version of "geometric modeling"
py
diff --git a/enoslib/api.py b/enoslib/api.py index <HASH>..<HASH> 100644 --- a/enoslib/api.py +++ b/enoslib/api.py @@ -733,6 +733,8 @@ def _merge_constraints(constraints, overrides): constraints[i].update(o) break i = i + 1 + else: + constraints.append(o)...
Enables the addition of constraints that were not present
py
diff --git a/filetype/types/image.py b/filetype/types/image.py index <HASH>..<HASH> 100644 --- a/filetype/types/image.py +++ b/filetype/types/image.py @@ -149,7 +149,7 @@ class Bmp(Type): class Jxr(Type): """ - Implements the BMP image type matcher. + Implements the JXR image type matcher. """ M...
fixed ICO image extension and mime type
py
diff --git a/django_template_check/management/commands/templatecheck.py b/django_template_check/management/commands/templatecheck.py index <HASH>..<HASH> 100644 --- a/django_template_check/management/commands/templatecheck.py +++ b/django_template_check/management/commands/templatecheck.py @@ -4,6 +4,7 @@ from django.c...
Set return code to 1 when failing This makes it possible to hook into this command from e.g. tox.
py
diff --git a/neurom/view/view.py b/neurom/view/view.py index <HASH>..<HASH> 100644 --- a/neurom/view/view.py +++ b/neurom/view/view.py @@ -574,7 +574,7 @@ def dendrogram(obj, show_diameters=True, new_fig=True, new_axes=True, subplot=Fa kwargs['xlabel'] = kwargs.get('xlabel', 'micrometers (um)') kwargs['ylabel...
Dendrogram plot corrections (#<I>) * Fix default aspect ratio for dendrogram * Correctly assign aspect ratio for dendrogram
py
diff --git a/SoftLayer/CLI/billing/list.py b/SoftLayer/CLI/billing/list.py index <HASH>..<HASH> 100644 --- a/SoftLayer/CLI/billing/list.py +++ b/SoftLayer/CLI/billing/list.py @@ -30,7 +30,16 @@ def cli(env, frmdate, enddate, group, resource): resource_status = resource table = formatting.Table(['Order ID', 'R...
currently BillingManager is not working ...first round of checkin
py
diff --git a/hgicommon/collections.py b/hgicommon/collections.py index <HASH>..<HASH> 100644 --- a/hgicommon/collections.py +++ b/hgicommon/collections.py @@ -46,7 +46,7 @@ class Metadata(Mapping): def pop(self, key: Any, default=None) -> Any: with self._key_lock[key]: - return self._data.pop...
Small change in pop() to avoid KeyError
py
diff --git a/geomdl/operations.py b/geomdl/operations.py index <HASH>..<HASH> 100644 --- a/geomdl/operations.py +++ b/geomdl/operations.py @@ -329,18 +329,18 @@ def decompose_curve(obj, **kwargs): if not isinstance(obj, abstract.Curve): raise TypeError("Input shape must be an instance of abstract.Curve cl...
Fix a bug in decompose_curve by renaming return variable
py
diff --git a/gwpy/tests/test_table.py b/gwpy/tests/test_table.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_table.py +++ b/gwpy/tests/test_table.py @@ -22,7 +22,7 @@ import os.path import tempfile -from numpy import (may_share_memory, testing as nptest) +from numpy import (may_share_memory, testing as nptest...
tests: added test to check reading from h5py objects
py
diff --git a/mtools/util/logfile.py b/mtools/util/logfile.py index <HASH>..<HASH> 100644 --- a/mtools/util/logfile.py +++ b/mtools/util/logfile.py @@ -132,9 +132,16 @@ class LogFile(InputSource): def __iter__(self): """ iteration over LogFile object will return a LogEvent object for each line (generator...
need to find a way for stdin log files to get start and end for mplotqueries. transparently in logfile (i.e. after iteration) ?
py
diff --git a/mwparserfromhell/smart_list.py b/mwparserfromhell/smart_list.py index <HASH>..<HASH> 100644 --- a/mwparserfromhell/smart_list.py +++ b/mwparserfromhell/smart_list.py @@ -76,7 +76,7 @@ class SmartList(list): def __getitem__(self, key): if not isinstance(key, slice): return super(S...
Fix a certain bug in SmartList with Py3k (closes #<I>)
py
diff --git a/invenio_webhooks/models.py b/invenio_webhooks/models.py index <HASH>..<HASH> 100644 --- a/invenio_webhooks/models.py +++ b/invenio_webhooks/models.py @@ -168,7 +168,7 @@ class CeleryReceiver(Receiver): def __call__(self, event): """Fire a celery task.""" - process_event.apply_async(t...
models: serializable event ID in CeleryReceiver * Fixes serialization issue when the event ID is passed as an argument to the `process_event` task from a CeleryReceiver. (closes #<I>)
py
diff --git a/instaloader.py b/instaloader.py index <HASH>..<HASH> 100755 --- a/instaloader.py +++ b/instaloader.py @@ -145,12 +145,15 @@ def save_session(session, filename, quiet=False): def load_session(filename, quiet=False): if filename is None: filename = DEFAULTSESSIONFILE - with open(filename, '...
catch case of nonexisting session file
py
diff --git a/hypercorn/asyncio/lifespan.py b/hypercorn/asyncio/lifespan.py index <HASH>..<HASH> 100644 --- a/hypercorn/asyncio/lifespan.py +++ b/hypercorn/asyncio/lifespan.py @@ -36,6 +36,7 @@ class Lifespan: if not self.supported: if hasattr(self.app, "startup"): # Compatibility with Quart 0.6.X...
Bugfix lifespan not supported error This fixes a bug introduced in e<I>b<I>a whereby for ASGI applications that don't support the lifespan protocol the startup (and shutdown if it ever reached) would still be waited on till a Timeout error crashed hypercorn.
py
diff --git a/testing/test_collection.py b/testing/test_collection.py index <HASH>..<HASH> 100644 --- a/testing/test_collection.py +++ b/testing/test_collection.py @@ -1225,7 +1225,7 @@ def test_collect_symlink_dir(pytester: Pytester) -> None: """A symlinked directory is collected.""" dir = pytester.mkdir("dir...
Fix test_collect_symlink_dir on Windows
py
diff --git a/tensorflow_probability/python/distributions/gamma_gamma.py b/tensorflow_probability/python/distributions/gamma_gamma.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/distributions/gamma_gamma.py +++ b/tensorflow_probability/python/distributions/gamma_gamma.py @@ -163,8 +163,7 @@ class Gam...
Remove the code to access the non-existent `frequency` property. PiperOrigin-RevId: <I>
py
diff --git a/pyang/translators/dsdl.py b/pyang/translators/dsdl.py index <HASH>..<HASH> 100644 --- a/pyang/translators/dsdl.py +++ b/pyang/translators/dsdl.py @@ -1161,6 +1161,8 @@ class HybridDSDLSchema(object): def identityref_type(self, tchain, p_elem): bid = tchain[0].search_one("base").i_identity ...
DSDL: issue warning for empty identityref value space. Irreflexivity is evil.
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -240,8 +240,8 @@ on_saltstack = 'SALT_ON_SALTSTACK' in os.environ project = 'Salt' version = salt.version.__version__ -latest_release = '2017.7.2' # latest release -previous_release = '2016.11.8' # latest rel...
[<I>] Bump latest and previous versions
py
diff --git a/spyder/utils/tests/test_programs.py b/spyder/utils/tests/test_programs.py index <HASH>..<HASH> 100644 --- a/spyder/utils/tests/test_programs.py +++ b/spyder/utils/tests/test_programs.py @@ -26,11 +26,13 @@ if os.name == 'nt': else: home_dir = os.environ['HOME'] VALID_INTERPRETER = os.path.join(h...
Testing: Add test for pythonw in macOS
py
diff --git a/holoviews/core/util.py b/holoviews/core/util.py index <HASH>..<HASH> 100644 --- a/holoviews/core/util.py +++ b/holoviews/core/util.py @@ -375,8 +375,11 @@ def max_range(ranges): try: with warnings.catch_warnings(): warnings.filterwarnings('ignore', r'All-NaN (slice|axis) encounte...
Fix for computing pandas Timestamp ranges
py
diff --git a/bindings/py/setup.py b/bindings/py/setup.py index <HASH>..<HASH> 100644 --- a/bindings/py/setup.py +++ b/bindings/py/setup.py @@ -61,7 +61,7 @@ def findRequirements(): Read the requirements.txt file and parse into requirements for setup's install_requirements option. """ - requirementsPath = "req...
Get qualified path to requirements.txt
py
diff --git a/backports/lzma/__init__.py b/backports/lzma/__init__.py index <HASH>..<HASH> 100644 --- a/backports/lzma/__init__.py +++ b/backports/lzma/__init__.py @@ -21,12 +21,6 @@ __all__ = [ "open", "compress", "decompress", "is_check_supported", ] -try: - #Python 3 - import builtins -except ImportErro...
Fix LZMAFile.seek on Python 2 In Python 2, builtins.open returns file objects which don't have the 'seekable' attribute. io.open is the Python 3 style interface to file.open.
py
diff --git a/tests/logs_unittest.py b/tests/logs_unittest.py index <HASH>..<HASH> 100644 --- a/tests/logs_unittest.py +++ b/tests/logs_unittest.py @@ -180,7 +180,8 @@ class PythonAMQPLogTestCase(unittest.TestCase): exclusive=True) self.queue.queue_declare() sel...
fixed test in logs_unittest.py randomly failing
py
diff --git a/docs/sphinx-docs/conf.py b/docs/sphinx-docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/sphinx-docs/conf.py +++ b/docs/sphinx-docs/conf.py @@ -50,7 +50,7 @@ copyright = u'2011, MongoDB Node.JS Team' # The short X.Y version. version = '1.2' # The full version, including alpha/beta/rc tags. -release = ...
Updated sphinx doc
py
diff --git a/ryu/contrib/ovs/stream.py b/ryu/contrib/ovs/stream.py index <HASH>..<HASH> 100644 --- a/ryu/contrib/ovs/stream.py +++ b/ryu/contrib/ovs/stream.py @@ -161,15 +161,17 @@ class Stream(object): is complete, returns 0 if the connection was successful or a positive errno value if it failed. If...
python/ovs/stream: Fix Stream.connect() retval for incomplete connection. This code is a backport from the upstream OVS (commit dcb<I>da): If the loop condition in Stream.connect() was false, which is especially likely for TCP connections, then Stream.connect() would return None, which violates its documented behavio...
py
diff --git a/widget_tweaks/templatetags/widget_tweaks.py b/widget_tweaks/templatetags/widget_tweaks.py index <HASH>..<HASH> 100644 --- a/widget_tweaks/templatetags/widget_tweaks.py +++ b/widget_tweaks/templatetags/widget_tweaks.py @@ -28,7 +28,8 @@ def set_attr(field, attr): @register.filter def append_attr(field, at...
Extra leading spaces for attributes added via append_attr or add_class are fixed.
py
diff --git a/tests/py/query/manytomany.py b/tests/py/query/manytomany.py index <HASH>..<HASH> 100644 --- a/tests/py/query/manytomany.py +++ b/tests/py/query/manytomany.py @@ -139,7 +139,7 @@ class TestRegisteredThroughModel(TestManyToManyBase): class TestManyToManyThrough(test.TestCase): - models = (...
added new test for manytomany through field
py
diff --git a/rollbar/test/fastapi_tests/test_middleware.py b/rollbar/test/fastapi_tests/test_middleware.py index <HASH>..<HASH> 100644 --- a/rollbar/test/fastapi_tests/test_middleware.py +++ b/rollbar/test/fastapi_tests/test_middleware.py @@ -1,3 +1,4 @@ +import copy import importlib import sys @@ -17,7 +18,10 @@ A...
Make sure SETTINGS are fresh for each test case
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ class PyTest(TestCommand): def initialize_options(self): TestCommand.initialize_options(self) - self.pytest_args = [] + self.pytest_args = ['-s'] def finalize_options(self): ...
Do not capture output in make test.
py
diff --git a/stagpy/__init__.py b/stagpy/__init__.py index <HASH>..<HASH> 100644 --- a/stagpy/__init__.py +++ b/stagpy/__init__.py @@ -3,11 +3,15 @@ StagPy is both a CLI tool and a powerful Python library. See the documentation at http://stagpy.readthedocs.io/en/stable/ + +If the environment variable STAGPY_NO_CONFI...
Config file not read if STAGPY_NO_CONFIG='True' This environment variable prevents StagPy from attempting to read a config file. This is mainly useful for testing purposes.
py
diff --git a/pwnypack/shellcode/base.py b/pwnypack/shellcode/base.py index <HASH>..<HASH> 100644 --- a/pwnypack/shellcode/base.py +++ b/pwnypack/shellcode/base.py @@ -198,9 +198,9 @@ class BaseEnvironment(object): def decorator(f): @functools.wraps(f) - def proxy(*args, **kwargs): + ...
Fix BaseEnvironment.translate with args.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -25,7 +25,7 @@ if not on_rtd: # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation roo...
fix python path for docs generation
py
diff --git a/raven/scripts/runner.py b/raven/scripts/runner.py index <HASH>..<HASH> 100644 --- a/raven/scripts/runner.py +++ b/raven/scripts/runner.py @@ -12,7 +12,6 @@ from __future__ import print_function import logging import os import sys -import pwd from optparse import OptionParser from raven import Client...
Handle missing getloadavg and pwd in raven test (fixes GH-<I>)
py
diff --git a/gwpy/cli/qtransform.py b/gwpy/cli/qtransform.py index <HASH>..<HASH> 100644 --- a/gwpy/cli/qtransform.py +++ b/gwpy/cli/qtransform.py @@ -211,7 +211,7 @@ class Qtransform(Spectrogram): # processed and the time resolution needed to create a good # image. NB:For each time span speci...
fix sign of segment protract for q-xfrm analysis
py
diff --git a/scipy_data_fitting/fit.py b/scipy_data_fitting/fit.py index <HASH>..<HASH> 100644 --- a/scipy_data_fitting/fit.py +++ b/scipy_data_fitting/fit.py @@ -192,11 +192,14 @@ class Fit: Other keys can be added freely and will be available as metadata for the various output formats. + De...
Added default to Fit.dependent.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup(name='uModbus', 'umodbus', ], classifiers=[ - 'Development Status :: 2 - Pre-Alpha', + 'Development Status :: 3 - Alpha', 'Intended Audience :: Develop...
Leaving Pre-Alpha! :pineapple:
py
diff --git a/src/pdfCropMargins/main_pdfCropMargins.py b/src/pdfCropMargins/main_pdfCropMargins.py index <HASH>..<HASH> 100644 --- a/src/pdfCropMargins/main_pdfCropMargins.py +++ b/src/pdfCropMargins/main_pdfCropMargins.py @@ -1101,7 +1101,7 @@ def process_pdf_file(input_doc_pathname, fixed_input_doc_pathname, output_d...
catch PdfReadError when the file is not encrypted
py
diff --git a/src/toil/test/utils/toilDebugTest.py b/src/toil/test/utils/toilDebugTest.py index <HASH>..<HASH> 100644 --- a/src/toil/test/utils/toilDebugTest.py +++ b/src/toil/test/utils/toilDebugTest.py @@ -42,6 +42,9 @@ class ToilDebugFileTest(ToilTest): """Default tearDown for unittest.""" shutil....
Delete untracked files.
py
diff --git a/salt/utils/event.py b/salt/utils/event.py index <HASH>..<HASH> 100644 --- a/salt/utils/event.py +++ b/salt/utils/event.py @@ -186,7 +186,7 @@ class EventPublisher(multiprocessing.Process): epull_sock.bind(epull_uri) # Restrict access to the sockets pub_mode = 448 - if self...
Make the publisher more open for external_auth
py
diff --git a/salt/states/git.py b/salt/states/git.py index <HASH>..<HASH> 100644 --- a/salt/states/git.py +++ b/salt/states/git.py @@ -172,7 +172,7 @@ def latest(name, branch = __salt__['git.current_branch'](target, user=user) # We're only interested in the remote branch if a branch ...
expect head instead of an empty string branches If the branch is detached, git rev-parse will return HEAD, instead of an empty string.
py
diff --git a/charmhelpers/contrib/openstack/amulet/utils.py b/charmhelpers/contrib/openstack/amulet/utils.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/amulet/utils.py +++ b/charmhelpers/contrib/openstack/amulet/utils.py @@ -150,9 +150,8 @@ class OpenStackAmuletUtils(AmuletUtils): self.lo...
Fix list bug in new keystone catalog veriifcation code for v3
py
diff --git a/lib/tri/query/__init__.py b/lib/tri/query/__init__.py index <HASH>..<HASH> 100644 --- a/lib/tri/query/__init__.py +++ b/lib/tri/query/__init__.py @@ -166,7 +166,7 @@ class Variable(Frozen, VariableBase): if variable.attr is None: return Q() try: - i...
Variable.choice_queryset should look up the target instance from the given queryset, not for all objects
py
diff --git a/examples/plots/upperair_declarative.py b/examples/plots/upperair_declarative.py index <HASH>..<HASH> 100644 --- a/examples/plots/upperair_declarative.py +++ b/examples/plots/upperair_declarative.py @@ -28,6 +28,13 @@ from metpy.units import units data = pd.read_csv(get_test_data('UPA_obs.csv', as_file_o...
Add note showing real-world case to upper-air example Addresses #<I>
py
diff --git a/lib/crtomo/binaries.py b/lib/crtomo/binaries.py index <HASH>..<HASH> 100644 --- a/lib/crtomo/binaries.py +++ b/lib/crtomo/binaries.py @@ -76,14 +76,16 @@ binaries = { } -def get(binary_name): +def get(binary_name, raise_error=True): """return a valid path to the given binary. Return an error if n...
crtomo.binaries.get - if no valid binary is found, raise an IOError
py
diff --git a/salt/modules/solarispkg.py b/salt/modules/solarispkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/solarispkg.py +++ b/salt/modules/solarispkg.py @@ -282,9 +282,11 @@ def install(name=None, sources=None, saltenv='base', **kwargs): log.warning('\'refresh\' argument not implemented for solarispk...
Fix traceback in solaris package installation
py
diff --git a/pymzn/_mzn/_model.py b/pymzn/_mzn/_model.py index <HASH>..<HASH> 100644 --- a/pymzn/_mzn/_model.py +++ b/pymzn/_mzn/_model.py @@ -121,9 +121,9 @@ class Variable(Statement): self.val = val if self.val: - stmt = 'var {}: {} = {};'.format(self.vartype, self.var, self.val) + ...
mzn: fix small bug in adding variable in model; awaiting for adding arrays feature
py
diff --git a/glue_vispy_viewers/isosurface/layer_artist.py b/glue_vispy_viewers/isosurface/layer_artist.py index <HASH>..<HASH> 100644 --- a/glue_vispy_viewers/isosurface/layer_artist.py +++ b/glue_vispy_viewers/isosurface/layer_artist.py @@ -84,6 +84,8 @@ class IsosurfaceLayerArtist(LayerArtistBase): self.red...
Make sure no error is raised if color isn’t set yet
py
diff --git a/amino/data/list.py b/amino/data/list.py index <HASH>..<HASH> 100644 --- a/amino/data/list.py +++ b/amino/data/list.py @@ -121,9 +121,11 @@ class List(Generic[A], typing.List[A], Implicits, implicits=True, metaclass=List return maybe.Empty() if self.empty else maybe.Just(self[1:]) @property ...
alias `List.detach_head` to `uncons`
py
diff --git a/dql/engine.py b/dql/engine.py index <HASH>..<HASH> 100644 --- a/dql/engine.py +++ b/dql/engine.py @@ -158,6 +158,10 @@ class Engine(object): else: ret = "%d (scanned count: %d)" % (result, result.scanned_count) + ...
Don't print out results when saving to a file
py
diff --git a/smuggler/utils.py b/smuggler/utils.py index <HASH>..<HASH> 100644 --- a/smuggler/utils.py +++ b/smuggler/utils.py @@ -43,7 +43,8 @@ def serialize_to_response(app_labels=[], exclude=[], response=None, 'exclude': exclude, 'format': format, 'indent': indent, - ...
use_natural_foreign_keys, use_natural_primary_keys
py
diff --git a/las/client.py b/las/client.py index <HASH>..<HASH> 100644 --- a/las/client.py +++ b/las/client.py @@ -150,7 +150,7 @@ class Client: @on_exception(expo, TooManyRequestsException, max_tries=4) @on_exception(expo, RequestException, max_tries=3, giveup=_fatal_code) - def get_processes(self) -> d...
Added params to GET /processes
py
diff --git a/gns3server/version.py b/gns3server/version.py index <HASH>..<HASH> 100644 --- a/gns3server/version.py +++ b/gns3server/version.py @@ -23,8 +23,8 @@ # or negative for a release candidate or beta (after the base version # number has been incremented) -__version__ = "2.2.8" -__version_info__ = (2, 2, 8, 0...
Development on <I>dev1
py
diff --git a/pdf/conduit/watermark/add.py b/pdf/conduit/watermark/add.py index <HASH>..<HASH> 100644 --- a/pdf/conduit/watermark/add.py +++ b/pdf/conduit/watermark/add.py @@ -78,7 +78,7 @@ class WatermarkAdd: if pdf_file['w'] <= letter_size['w'] or pdf_file['h'] <= letter_size['h']: scale = float(...
FIX issue with missing document_reader
py
diff --git a/prospector/tools/profile_validator/__init__.py b/prospector/tools/profile_validator/__init__.py index <HASH>..<HASH> 100644 --- a/prospector/tools/profile_validator/__init__.py +++ b/prospector/tools/profile_validator/__init__.py @@ -27,11 +27,14 @@ class ProfileValidationTool(ToolBase): def __init_...
The profile validator should ignore warnings and messages the same as any other tool
py
diff --git a/py/test/rsession/rsession.py b/py/test/rsession/rsession.py index <HASH>..<HASH> 100644 --- a/py/test/rsession/rsession.py +++ b/py/test/rsession/rsession.py @@ -27,9 +27,6 @@ class AbstractSession(Session): if option.runbrowser and not option.startserver: #print "--runbrowser implies...
[svn r<I>] * RSession cannot work with nocapture, LSession can * RSession is always boxed --HG-- branch : trunk
py
diff --git a/astroplan/tests/test_constraints.py b/astroplan/tests/test_constraints.py index <HASH>..<HASH> 100644 --- a/astroplan/tests/test_constraints.py +++ b/astroplan/tests/test_constraints.py @@ -61,7 +61,9 @@ def test_observability_table(): targets = [vega, rigel, polaris] time_range = Time(['2001-0...
adapt tests to new AirmassConstraint defaults
py
diff --git a/tests/unit/nupic/research/spatial_pooler_cpp_unit_test.py b/tests/unit/nupic/research/spatial_pooler_cpp_unit_test.py index <HASH>..<HASH> 100755 --- a/tests/unit/nupic/research/spatial_pooler_cpp_unit_test.py +++ b/tests/unit/nupic/research/spatial_pooler_cpp_unit_test.py @@ -26,6 +26,7 @@ import numpy as...
Allow testing with python SP
py
diff --git a/ppb/scenes.py b/ppb/scenes.py index <HASH>..<HASH> 100644 --- a/ppb/scenes.py +++ b/ppb/scenes.py @@ -1,6 +1,5 @@ from collections import defaultdict from collections.abc import Collection -from copy import copy from typing import Hashable from typing import Iterable from typing import Iterator @@ -9,...
BaseScene has a camera provided.
py
diff --git a/.buildkite/pipeline.py b/.buildkite/pipeline.py index <HASH>..<HASH> 100644 --- a/.buildkite/pipeline.py +++ b/.buildkite/pipeline.py @@ -358,7 +358,7 @@ if __name__ == "__main__": "cd tmp", "coverage combine", "coveralls-lcov -v -n lcov.* > coverage.js.json", - ...
dont report JS coverage to coveralls Summary: Do we want to do this? Test Plan: eyes Reviewers: schrockn, alangenfeld Reviewed By: schrockn Differential Revision: <URL>
py
diff --git a/aws_google_auth/google.py b/aws_google_auth/google.py index <HASH>..<HASH> 100644 --- a/aws_google_auth/google.py +++ b/aws_google_auth/google.py @@ -255,9 +255,11 @@ class Google: raise ExpectedGoogleException('Invalid username or password') if "signin/rejected" in sess.url: - ...
Update bgresponse copy to mention logged out state
py
diff --git a/werkzeug/testsuite/datastructures.py b/werkzeug/testsuite/datastructures.py index <HASH>..<HASH> 100644 --- a/werkzeug/testsuite/datastructures.py +++ b/werkzeug/testsuite/datastructures.py @@ -66,15 +66,15 @@ class MutableMultiDictBaseTestCase(WerkzeugTestCase): for protocol in xrange(pickle.HI...
Fixed testsuites for datastructures
py
diff --git a/ffi/build.py b/ffi/build.py index <HASH>..<HASH> 100755 --- a/ffi/build.py +++ b/ffi/build.py @@ -124,8 +124,9 @@ def main_posix(kind, library_ext): out = subprocess.check_output([llvm_config, '--version']) except FileNotFoundError: msg = ("Could not find a `llvm-config` binary. Ther...
add link pointing to using pip section Since the installation with `pip` is the primary cause for confusion here, we link to this section from the error message.
py
diff --git a/tests/integration/modules/test_publish.py b/tests/integration/modules/test_publish.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/test_publish.py +++ b/tests/integration/modules/test_publish.py @@ -1,7 +1,3 @@ -# -*- coding: utf-8 -*- - -from __future__ import absolute_import, print_functio...
Drop Py2 and six on tests/integration/modules/test_publish.py
py