diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ class dist_clean(Command):
print("Repository is now clean!")
setup(name='git-repo',
- version='1.5.1',
+ version='1.5.2',
description='Tool for managing remote repositories from your... | fixed pypi distribution issues (typo in find_packages | py |
diff --git a/pydoop/hadoop_utils.py b/pydoop/hadoop_utils.py
index <HASH>..<HASH> 100644
--- a/pydoop/hadoop_utils.py
+++ b/pydoop/hadoop_utils.py
@@ -305,7 +305,7 @@ class PathFinder(object):
_hadoop_home_from_version_cmd() or
first_dir_in_glob("/usr/lib/hadoop*") or
first_dir_in_glob("/usr/... | Removed an 'or' out-of-place | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -232,7 +232,7 @@ def generate_version_info():
f.write('git_status = \'%s\'\n' % vcs_info.status)
f.write('git_builder = \'%s\'\n' % vcs_info.builder)
f.write('git_build_date = \'%s\'\n' % vcs_info.bu... | Fixm commiter/builder confusion | py |
diff --git a/openquake/calculators/export/hazard.py b/openquake/calculators/export/hazard.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/export/hazard.py
+++ b/openquake/calculators/export/hazard.py
@@ -736,7 +736,7 @@ def export_gmf_data_csv(ekey, dstore):
if eid is None: # new format
... | Added a comment [skip CI] | py |
diff --git a/forestci/calibration.py b/forestci/calibration.py
index <HASH>..<HASH> 100644
--- a/forestci/calibration.py
+++ b/forestci/calibration.py
@@ -36,7 +36,7 @@ _due.cite(_BibTeX("""
path='forestci')
-def gfit(X, sigma, p=5, nbin=100000, unif_fraction=0.1):
+def gfit(X, sigma, p=5, nbin=200, unif... | Use a much smaller default for the number of bins in EB fit. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -416,7 +416,7 @@ if build_c_extension != 'disabled':
INSTALL_REQUIRES += [
'pkgconfig',
'cchardet',
- 'networkx==2.5'
+ 'networkx>=2.5'
]
PACKAGE_DATA[... | future-proof networkx dependency by dropping explicit pinning | py |
diff --git a/rewind/logbook.py b/rewind/logbook.py
index <HASH>..<HASH> 100644
--- a/rewind/logbook.py
+++ b/rewind/logbook.py
@@ -795,7 +795,7 @@ class LogBookRunner(object):
to = self.query_socket.recv()
assert not self.query_socket.getsockopt(zmq.RCVMORE)
- logging.debug("Incom... | Use correct string substitution for log msg `%` is unnecessary - and is removed in Python 3. | py |
diff --git a/glances/main.py b/glances/main.py
index <HASH>..<HASH> 100644
--- a/glances/main.py
+++ b/glances/main.py
@@ -39,7 +39,7 @@ class GlancesMain(object):
refresh_time = 3
# Set the default cache lifetime to 1 second (only for server)
- # !!! Todo: configuration from the command line
+ # !!! ... | Add reference to issue #<I> | py |
diff --git a/angr/surveyors/caller.py b/angr/surveyors/caller.py
index <HASH>..<HASH> 100644
--- a/angr/surveyors/caller.py
+++ b/angr/surveyors/caller.py
@@ -36,6 +36,7 @@ class Caller(Explorer):
self._ret_addr = throwaway.se.BVV(self._fake_return_addr, throwaway.arch.bits)
for p in start_paths:
+ ... | set address, in case a path was passed in | py |
diff --git a/pip_accel/__init__.py b/pip_accel/__init__.py
index <HASH>..<HASH> 100644
--- a/pip_accel/__init__.py
+++ b/pip_accel/__init__.py
@@ -1,7 +1,7 @@
# Accelerator for pip, the Python package manager.
#
# Author: Peter Odding <peter.odding@paylogic.eu>
-# Last Change: May 24, 2014
+# Last Change: May 29, 20... | Shut up custom package finder (the noise has been bothering me for a while) | py |
diff --git a/ricecooker/utils/downloader.py b/ricecooker/utils/downloader.py
index <HASH>..<HASH> 100644
--- a/ricecooker/utils/downloader.py
+++ b/ricecooker/utils/downloader.py
@@ -87,11 +87,6 @@ try:
{'timeout': timeout * 1000, 'waitUntil': ['load', 'domcontentloaded', 'networkidle0']})
... | Fix strange uncaught issue with code blocks being duplicated. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -54,7 +54,12 @@ if __name__ == "__main__":
description="Use the full Github API v3",
author="Vincent Jacques",
author_email="vincent@vincent-jacques.net",
- url="http://pygithub.readthedocs.io... | Add missing links to project metadata (#<I>) Fixes: #<I> | py |
diff --git a/userena/tests/tests_utils.py b/userena/tests/tests_utils.py
index <HASH>..<HASH> 100644
--- a/userena/tests/tests_utils.py
+++ b/userena/tests/tests_utils.py
@@ -67,13 +67,13 @@ class UtilsTests(TestCase):
"""
# A non existent model should also raise ``SiteProfileNotAvailable``
#... | fix "settings leakage" in utils tests | py |
diff --git a/nested_inline/admin.py b/nested_inline/admin.py
index <HASH>..<HASH> 100644
--- a/nested_inline/admin.py
+++ b/nested_inline/admin.py
@@ -381,7 +381,11 @@ class NestedInline(InlineInstancesMixin, InlineModelAdmin):
@property
def media(self):
extra = '' if settings.DEBUG else '.min'
- ... | Update media so it expects to find jquery in the right place. (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,19 @@
-from setuptools import setup, find_packages
+# try importing from setuptools, if unavailable use distutils.core
+try:
+ from setuptools import setup, find_packages
+
+ install_requires = []
+ # test for... | added argparse check and dependency with install_requires, added alternative setup import from distutils. | py |
diff --git a/angr/path.py b/angr/path.py
index <HASH>..<HASH> 100644
--- a/angr/path.py
+++ b/angr/path.py
@@ -1,4 +1,5 @@
from os import urandom
+import os
import copy
import sys
import logging
@@ -734,7 +735,10 @@ class Path(object):
if where_object is None:
return "<Path with %d runs (at 0x... | Path: only display basename of each binary in __repr__(). | py |
diff --git a/qiskit/circuit/quantumcircuit.py b/qiskit/circuit/quantumcircuit.py
index <HASH>..<HASH> 100644
--- a/qiskit/circuit/quantumcircuit.py
+++ b/qiskit/circuit/quantumcircuit.py
@@ -400,10 +400,6 @@ class QuantumCircuit:
return instruction
- def _attach(self, instruction, qargs, cargs):
- ... | Removed deprecated circuit._attach (#<I>) * Removed circuit._attach * Linting | py |
diff --git a/nsone/rest/transport/twisted.py b/nsone/rest/transport/twisted.py
index <HASH>..<HASH> 100644
--- a/nsone/rest/transport/twisted.py
+++ b/nsone/rest/transport/twisted.py
@@ -22,9 +22,10 @@ except Exception as e:
have_twisted = False
-class WebClientContextFactory(ClientContextFactory):
- def ge... | Adds conditional around twisted ssl factory class. | py |
diff --git a/astrocats/catalog/photometry.py b/astrocats/catalog/photometry.py
index <HASH>..<HASH> 100644
--- a/astrocats/catalog/photometry.py
+++ b/astrocats/catalog/photometry.py
@@ -62,6 +62,8 @@ class PHOTOMETRY(KeyCollection):
LOWER_LIMIT = Key('lowerlimit', KEY_TYPES.BOOL)
HOST = Key('host', KEY_TYPES... | ENH: added two members to `PHOTOMETRY` | py |
diff --git a/beets/mediafile.py b/beets/mediafile.py
index <HASH>..<HASH> 100644
--- a/beets/mediafile.py
+++ b/beets/mediafile.py
@@ -424,11 +424,10 @@ class SoundCheckStorageStyleMixin(object):
self.store(mutagen_file, data)
-class ASFStorageStyle(StorageStyle):
+class ASFStorageStyle(ListStorageStyle):
... | Genre list support for WMA Original: beetbox/beets@4abc<I> | py |
diff --git a/dex/dex.py b/dex/dex.py
index <HASH>..<HASH> 100755
--- a/dex/dex.py
+++ b/dex/dex.py
@@ -115,7 +115,7 @@ class Dex:
if query_report is not None:
if query_report['recommendation'] is not None:
self._run_stats['linesWithRecommendations'] += 1
- ... | null recs omitted for now | py |
diff --git a/yoti_python_sdk/dynamic_sharing_service/policy/wanted_attribute_builder.py b/yoti_python_sdk/dynamic_sharing_service/policy/wanted_attribute_builder.py
index <HASH>..<HASH> 100644
--- a/yoti_python_sdk/dynamic_sharing_service/policy/wanted_attribute_builder.py
+++ b/yoti_python_sdk/dynamic_sharing_service/... | SDK-<I>: Use ValueError instead of assertions to check attribute name | py |
diff --git a/salt/states/reg.py b/salt/states/reg.py
index <HASH>..<HASH> 100644
--- a/salt/states/reg.py
+++ b/salt/states/reg.py
@@ -15,7 +15,7 @@ def _parse_key(key):
'''
split the full path in the registry to the key and the rest
'''
- splt = key.split(r'\\')
+ splt = key.split("\\")
hive ... | fix for incorrect string split character in windows registry keys | py |
diff --git a/hdbscan/hdbscan_.py b/hdbscan/hdbscan_.py
index <HASH>..<HASH> 100644
--- a/hdbscan/hdbscan_.py
+++ b/hdbscan/hdbscan_.py
@@ -347,7 +347,7 @@ def hdbscan(X, min_cluster_size=5, min_samples=None, alpha=1.0,
return _hdbscan_small_kdtree(X, min_cluster_size,
min_... | Fix a missed tuple dereference | py |
diff --git a/bigfloat/test/test_bigfloat.py b/bigfloat/test/test_bigfloat.py
index <HASH>..<HASH> 100644
--- a/bigfloat/test/test_bigfloat.py
+++ b/bigfloat/test/test_bigfloat.py
@@ -5,6 +5,7 @@ import unittest
import operator
from bigfloat import *
from bigfloat import _all_flags
+from bigfloat import MPFR_VERSION_... | Don't test '%' operation for MPFR version < <I>. | py |
diff --git a/gtabview/__init__.py b/gtabview/__init__.py
index <HASH>..<HASH> 100644
--- a/gtabview/__init__.py
+++ b/gtabview/__init__.py
@@ -115,14 +115,27 @@ def _varname_in_stack(var, skip):
return None
+def blaze_from_uri(uri):
+ import blaze as bz
+
+ # make file:// uris work uniformly
+ if uri.... | Handle URIs by passing them to Blaze directly. | py |
diff --git a/mpd.py b/mpd.py
index <HASH>..<HASH> 100644
--- a/mpd.py
+++ b/mpd.py
@@ -1,5 +1,3 @@
-#! /usr/bin/env python
-
import socket | mpd.py: removing shebang line | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,12 +4,16 @@ import os, sys
from setuptools import setup, find_packages
-pkg_root = os.path.dirname(__file__)
+# Error-handling here is to allow package to be built w/o README included
+try:
+ readme = open(os.path.join... | setup: fixed install w/o README file included | py |
diff --git a/fabric/transfer.py b/fabric/transfer.py
index <HASH>..<HASH> 100644
--- a/fabric/transfer.py
+++ b/fabric/transfer.py
@@ -110,8 +110,8 @@ class Transfer(object):
# TODO: Push this down into SFTPClient sometime (requires backwards
# incompat release.)
#
- mo... | This line only needs to happen inside the conditional block | py |
diff --git a/tests/test_innings.py b/tests/test_innings.py
index <HASH>..<HASH> 100644
--- a/tests/test_innings.py
+++ b/tests/test_innings.py
@@ -11,9 +11,6 @@ class TestInnings(unittest.TestCase):
innings = mlbgame.game_innings('2016_08_02_nyamlb_nynmlb_1')
for inning in innings:
self.a... | Fixed innings tests to match event innings format - <I>/<I>/<I> 1:<I> PM | py |
diff --git a/tests/examples/examples_report_plugin.py b/tests/examples/examples_report_plugin.py
index <HASH>..<HASH> 100644
--- a/tests/examples/examples_report_plugin.py
+++ b/tests/examples/examples_report_plugin.py
@@ -94,10 +94,11 @@ class ExamplesTestReport(object):
example = re.search(r'\[(.*?)\]', repo... | only look for file if not None | py |
diff --git a/huey/tests/test_api.py b/huey/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/huey/tests/test_api.py
+++ b/huey/tests/test_api.py
@@ -479,7 +479,7 @@ class TestQueue(BaseTestCase):
self.huey.execute(task, seconds(30))
self.assertEqual(state, [res.id, r2.id, r3.id, r4.id])
- ... | Fix <I> incompatibility in test. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -48,9 +48,9 @@ copyright = u'2013, Vaidik Kapoor'
# built documents.
#
# The short X.Y version.
-version = '0.1'
+version = '0.2.6'
# The full version, including alpha/beta/rc ta... | add version in docs conf | py |
diff --git a/devassistant/yaml_loader.py b/devassistant/yaml_loader.py
index <HASH>..<HASH> 100644
--- a/devassistant/yaml_loader.py
+++ b/devassistant/yaml_loader.py
@@ -45,7 +45,7 @@ class YamlLoader(object):
ret = None
name_dot_yaml = name + '.yaml'
for d in directories:
- if d.... | Create data directory only in user's home, not generally under /home | py |
diff --git a/indra/tools/reading/readers.py b/indra/tools/reading/readers.py
index <HASH>..<HASH> 100644
--- a/indra/tools/reading/readers.py
+++ b/indra/tools/reading/readers.py
@@ -193,8 +193,6 @@ class ReachReader(Reader):
write_content_file('nxml')
elif text_content.format == formats.TEXT:
... | Remove JSON handling of text content. | py |
diff --git a/xarray/core/groupby.py b/xarray/core/groupby.py
index <HASH>..<HASH> 100644
--- a/xarray/core/groupby.py
+++ b/xarray/core/groupby.py
@@ -579,7 +579,7 @@ class GroupBy:
obj._indexes = filter_indexes_from_coords(obj._indexes, set(obj.coords))
return obj
- def _flox_reduce(self, di... | Set keep_attrs for flox (#<I>) | py |
diff --git a/mrivis/mrivis.py b/mrivis/mrivis.py
index <HASH>..<HASH> 100644
--- a/mrivis/mrivis.py
+++ b/mrivis/mrivis.py
@@ -137,8 +137,9 @@ def get_axis(array, axis, slice_num):
slice_list = [slice(None)] * array.ndim
slice_list[axis] = slice_num
+ slice_data = array[slice_list].T # transpose for prop... | removing stray values and tranposing for better presentation | py |
diff --git a/pyrtl/inputoutput.py b/pyrtl/inputoutput.py
index <HASH>..<HASH> 100644
--- a/pyrtl/inputoutput.py
+++ b/pyrtl/inputoutput.py
@@ -60,8 +60,8 @@ def input_from_blif(blif, block=None, merge_io_vectors=True, clock_name='clk'):
return s
# Begin BLIF language definition
- signal_start = pypar... | fix blif importer to allow ? character in names (blif I've been imported has been having those as legal characters too) | py |
diff --git a/pysnow.py b/pysnow.py
index <HASH>..<HASH> 100644
--- a/pysnow.py
+++ b/pysnow.py
@@ -358,14 +358,9 @@ class Request(object):
@property
def status_code(self):
"""Return last_response.status_code after making sure an inner `requests.request` has been performed
-
- :raise:
-... | Removed raise of NoRequestExecuted in Request.status_code | py |
diff --git a/samples/SimpleChatClient.py b/samples/SimpleChatClient.py
index <HASH>..<HASH> 100755
--- a/samples/SimpleChatClient.py
+++ b/samples/SimpleChatClient.py
@@ -52,13 +52,13 @@ password = getpass() #Hide user input
try:
client.login_with_password(username,password)
except MatrixRequestError as e:
+ ... | Fixed sys.exit being called too soon. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,6 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
-
name='pylocus',
version='1.0.2',
@@ -59,7 +58,7 @@ setup(
# your project is installed.... | Added cvxpy to requirements. | py |
diff --git a/docxtpl/__init__.py b/docxtpl/__init__.py
index <HASH>..<HASH> 100644
--- a/docxtpl/__init__.py
+++ b/docxtpl/__init__.py
@@ -411,6 +411,8 @@ class RichText(object):
color=None,
highlight=None,
size=None,
+ su... | added props for sub and super tested on word for macOS, version <I> (<I>). Documentation found here: <URL> | py |
diff --git a/hagelslag/processing/EnhancedWatershedSegmenter.py b/hagelslag/processing/EnhancedWatershedSegmenter.py
index <HASH>..<HASH> 100644
--- a/hagelslag/processing/EnhancedWatershedSegmenter.py
+++ b/hagelslag/processing/EnhancedWatershedSegmenter.py
@@ -260,4 +260,21 @@ class EnhancedWatershed(object):
... | Added rescaling function | py |
diff --git a/oauthlib/oauth1/rfc5849/endpoints/base.py b/oauthlib/oauth1/rfc5849/endpoints/base.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth1/rfc5849/endpoints/base.py
+++ b/oauthlib/oauth1/rfc5849/endpoints/base.py
@@ -70,7 +70,7 @@ class BaseEndpoint(object):
# Only include body data from x-www-form-u... | Accept 'Content-Type: application/x-www-form-urlencoded;charset=utf8' also | py |
diff --git a/pymbar/mbar.py b/pymbar/mbar.py
index <HASH>..<HASH> 100644
--- a/pymbar/mbar.py
+++ b/pymbar/mbar.py
@@ -1141,7 +1141,7 @@ class MBAR:
# Retrieve N and K for convenience.
[K,N] = np.shape(u_kn)
- A_in = u_kn
+ A_in = u_kn.copy()
state_map = np.zeros([2,K],int)
... | Entropy and Enthalpy function was setting A_in = u_kn instead of a copy of u_kn, so when A_in was manipualted in the computeExpectationsInner, it was also manipulating u_kn, resulting in DeltaF_ij != DeltaF_ij from computePerturbedFreeEnergies() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,16 +33,21 @@ def read(*paths):
setup(
- name='pyudmx',
+ name='udmx-pyusb',
version='2.0.0',
description='uDMX Interface Library',
long_description=(read('Readme.md')),
- url='www.github.com/dh... | Changes to setup.py for publishing <I> to PyPI | py |
diff --git a/credstash.py b/credstash.py
index <HASH>..<HASH> 100755
--- a/credstash.py
+++ b/credstash.py
@@ -251,12 +251,13 @@ def clean_fail(func):
return func_wrapper
-def listSecrets(region=None, table="credential-store", **kwargs):
+def listSecrets(region=None, table="credential-store", session=None, **k... | allow use of a custom session with AWS profile information when using the getAllSecrets, and by extenstion the listSecrets | py |
diff --git a/examples/integration_test.py b/examples/integration_test.py
index <HASH>..<HASH> 100755
--- a/examples/integration_test.py
+++ b/examples/integration_test.py
@@ -315,6 +315,7 @@ def verify_producer_performance(with_dr_cb=True):
""" Time how long it takes to produce and delivery X messages """
con... | Speed up producer performance test by setting linger.ms | py |
diff --git a/quickbooks/objects/purchaseorder.py b/quickbooks/objects/purchaseorder.py
index <HASH>..<HASH> 100644
--- a/quickbooks/objects/purchaseorder.py
+++ b/quickbooks/objects/purchaseorder.py
@@ -50,6 +50,7 @@ class PurchaseOrder(DeleteMixin, QuickbooksManagedObject, QuickbooksTransactionE
self.DueDate ... | Added memo field Memo field mapped to "Your message to vendor" in UI | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,6 +34,7 @@ setup(
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Python :: Implementati... | Add PyPy to classifiers since we test it in Tox and on Travis. | py |
diff --git a/overseer/admin.py b/overseer/admin.py
index <HASH>..<HASH> 100644
--- a/overseer/admin.py
+++ b/overseer/admin.py
@@ -29,7 +29,7 @@ class EventAdmin(admin.ModelAdmin):
def save_formset(self, request, form, formset, change):
instances = formset.save()
- if form.cleaned_data['post_to_t... | Check if the post_to_twitter value has been submitted in the form. | py |
diff --git a/flask_migrate/__init__.py b/flask_migrate/__init__.py
index <HASH>..<HASH> 100755
--- a/flask_migrate/__init__.py
+++ b/flask_migrate/__init__.py
@@ -27,13 +27,15 @@ class _MigrateConfig(object):
class Migrate(object):
def __init__(self, app=None, db=None, directory='migrations', **kwargs):
+ ... | Updates so that directory doesn't get overridden Fixes #<I> where directory gets overridden if it is not explicitly specified in init_app. This fix allows it to be set when the `Migrate` object is initialized and not automatically get overridden when the `init_app` is called. This is a non-breaking change. | py |
diff --git a/pyqode/python/backend/workers.py b/pyqode/python/backend/workers.py
index <HASH>..<HASH> 100644
--- a/pyqode/python/backend/workers.py
+++ b/pyqode/python/backend/workers.py
@@ -3,13 +3,9 @@
"""
Contains the worker classes/functions executed on the server side.
"""
-import _ast
import logging
import o... | Fix un-needed dependencies Frontend does not really depends on those packages, only the backend does. | py |
diff --git a/__pkg_data__.py b/__pkg_data__.py
index <HASH>..<HASH> 100644
--- a/__pkg_data__.py
+++ b/__pkg_data__.py
@@ -30,7 +30,7 @@ DESCRIPTION = upoints.__doc__.splitlines()[0][:-1]
LONG_DESCRIPTION = "\n\n".join(upoints.__doc__.split("\n\n")[1:3])
KEYWORDS = ["baken", "cities", "geonames", "gis", "gps", "gpx... | Minor python syntax clean ups. | py |
diff --git a/dvc/stage.py b/dvc/stage.py
index <HASH>..<HASH> 100644
--- a/dvc/stage.py
+++ b/dvc/stage.py
@@ -551,8 +551,8 @@ class Stage(object):
def _check_circular_dependency(self):
from dvc.exceptions import CircularDependencyError
- circular_dependencies = set(f.path for f in self.deps) & s... | minor: better variable names in stage class | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,22 +18,10 @@
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the included LICENSE file for details.
#______________________________________________________... | Remove old comments from setup.py on bootstrapping to newer setuptools. | py |
diff --git a/src/p4p/client/asyncio.py b/src/p4p/client/asyncio.py
index <HASH>..<HASH> 100644
--- a/src/p4p/client/asyncio.py
+++ b/src/p4p/client/asyncio.py
@@ -394,8 +394,12 @@ class Subscription(object):
E = Finished()
await self._cb(E)
+
+ except a... | cleaning logging output when a program is stop by Ctrl+C When running a program with asyncio.run(), which is now the recommended way to do it, and the execution is interrupted (e.g., with KeyboardInterrump), then all tasks are cancelled (<URL> | py |
diff --git a/salt/engines/slack.py b/salt/engines/slack.py
index <HASH>..<HASH> 100644
--- a/salt/engines/slack.py
+++ b/salt/engines/slack.py
@@ -104,7 +104,6 @@ try:
HAS_SLACKCLIENT = True
except ImportError:
HAS_SLACKCLIENT = False
- log.error("The slack integration can't be loaded because of an Import... | Squelch spurious error when loader processes slack engine The of b<I>b0aa was likely unaware that this would result in this message being logged every time the loader processes the slack engine. This moves the logging to the proper place within the __virtual__ func. | py |
diff --git a/examples/waves/waves.py b/examples/waves/waves.py
index <HASH>..<HASH> 100644
--- a/examples/waves/waves.py
+++ b/examples/waves/waves.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
"""Use the iching to dictate the behavior of a series of sine waves."""
from __future__ import divisio... | Make shebang 2/3 agnostic | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -2047,10 +2047,10 @@ def line(path, content=None, match=None, mode=None, location=None,
# Make sure we match the file mode from salt.utils.files.fopen
... | Handle list of lines instead of strings in file.line func In `Fluorine`, in order to better handle line endings, the "body" variable has been changed to a list of strings. Therefore, we need to handle encoding or decoding the elements in the list, rather than using the `stringutils` functions. | py |
diff --git a/perftest/performance.py b/perftest/performance.py
index <HASH>..<HASH> 100755
--- a/perftest/performance.py
+++ b/perftest/performance.py
@@ -58,7 +58,7 @@ def main():
tags = check_output(['git', 'tag', '--list'], encoding='ascii').strip().split('\n')
# Skip minor versions
- tags = [i for i ... | Skip all minor versions I should decide on a schema | py |
diff --git a/scripts/subset.py b/scripts/subset.py
index <HASH>..<HASH> 100755
--- a/scripts/subset.py
+++ b/scripts/subset.py
@@ -119,7 +119,7 @@ def subset_font_raw(font_in, font_out, unicodes, opts):
if pe:
print('Generate("' + font_out + '")', file=pe)
pe.close()
- os.system("fontforge... | subset.py: Run fontforge quietly | py |
diff --git a/flake8_import_order/checker.py b/flake8_import_order/checker.py
index <HASH>..<HASH> 100644
--- a/flake8_import_order/checker.py
+++ b/flake8_import_order/checker.py
@@ -90,7 +90,7 @@ class ImportOrderChecker(object):
if noqa_match is None:
return False
- codes_str = noqa_mat... | Simplify re group access `.group(name)` is more straightforward than `.groupdict()[name]`. | py |
diff --git a/tests/since_id/test_redis.py b/tests/since_id/test_redis.py
index <HASH>..<HASH> 100644
--- a/tests/since_id/test_redis.py
+++ b/tests/since_id/test_redis.py
@@ -1,5 +1,7 @@
import unittest
+from mock import patch
+
from twitter_bot.since_id.redis_provider import RedisSinceIdProvider
@@ -9,6 +11,14... | Brought coverage back up to <I>% | py |
diff --git a/sgp4/tests.py b/sgp4/tests.py
index <HASH>..<HASH> 100644
--- a/sgp4/tests.py
+++ b/sgp4/tests.py
@@ -50,7 +50,7 @@ if sys.version_info[:2] == (2, 7) or sys.version_info[:2] == (2, 6):
class Tests(TestCase):
- def test_intldesg(self):
+ def test_intldesg_with_7_characters(self):
sat = S... | Clarify two tests so I can remember what they do | py |
diff --git a/telethon/tl/tlobject.py b/telethon/tl/tlobject.py
index <HASH>..<HASH> 100644
--- a/telethon/tl/tlobject.py
+++ b/telethon/tl/tlobject.py
@@ -47,8 +47,8 @@ class TLObject:
k, TLObject.pretty_format(v)
) for k, v in obj.items()
))
- e... | TLObject.stringify() was showing bytes as lists | py |
diff --git a/symbols/arrayaccess.py b/symbols/arrayaccess.py
index <HASH>..<HASH> 100644
--- a/symbols/arrayaccess.py
+++ b/symbols/arrayaccess.py
@@ -85,12 +85,7 @@ class SymbolARRAYACCESS(SymbolCALL):
# i is the dimension ith index, b is the bound
for i, b in zip(self.arglist, self.entry.bounds):
... | BugFix: fixed a bug in access to non 0-based arrays (Thanks, to Eunar Saukas) | py |
diff --git a/anyconfig/processors.py b/anyconfig/processors.py
index <HASH>..<HASH> 100644
--- a/anyconfig/processors.py
+++ b/anyconfig/processors.py
@@ -2,6 +2,7 @@
# Copyright (C) 2018 Satoru SATOH <ssato @ redhat.com>
# License: MIT
#
+# pylint: disable=unidiomatic-typecheck
r"""Abstract processor module.
..... | fix: suppress pylint's warning about explicit use of type() | py |
diff --git a/peewee.py b/peewee.py
index <HASH>..<HASH> 100644
--- a/peewee.py
+++ b/peewee.py
@@ -1225,8 +1225,8 @@ class Function(ColumnBase):
self._coerce = coerce
def __getattr__(self, attr):
- def decorator(*args):
- return Function(attr, args)
+ def decorator(*args, co... | Support `coerce` in fn decorator. Replaces #<I>. | py |
diff --git a/tests/test_gitlab.py b/tests/test_gitlab.py
index <HASH>..<HASH> 100644
--- a/tests/test_gitlab.py
+++ b/tests/test_gitlab.py
@@ -88,6 +88,7 @@ class TestGitlabIssue(ServiceTest):
'tags': ['feature'],
issue.URL: self.arbitrary_extra['issue_url'],
issue.REPO: 'project'... | Fixing a slightly-out-of-date gitlab test. | py |
diff --git a/mollie/api/client.py b/mollie/api/client.py
index <HASH>..<HASH> 100644
--- a/mollie/api/client.py
+++ b/mollie/api/client.py
@@ -211,6 +211,7 @@ class Client(object):
},
params=params,
data=data,
+ timeout=self.timeout,
)
... | Add missing timeout setting to oauth client setup. | py |
diff --git a/tensorflow_probability/python/experimental/stats/sample_stats.py b/tensorflow_probability/python/experimental/stats/sample_stats.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/experimental/stats/sample_stats.py
+++ b/tensorflow_probability/python/experimental/stats/sample_stats.py
@@ -4... | specifying in the docstring what sum_exponentiated_residuals is | py |
diff --git a/src/python/pants/backend/jvm/subsystems/zinc_language_mixin.py b/src/python/pants/backend/jvm/subsystems/zinc_language_mixin.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/jvm/subsystems/zinc_language_mixin.py
+++ b/src/python/pants/backend/jvm/subsystems/zinc_language_mixin.py
@@ -58,7 +58,... | Fix spurious deprecation warning for fatal_warnings (#<I>) ### Problem `zinc_language_mixin.py` accesses its own deprecated property to get the fatal_warnings option value, which triggers a guaranteed warning. ### Solution Directly consume the fatal_warnings option value to avoid triggering the deprecation wa... | py |
diff --git a/spotify/local.py b/spotify/local.py
index <HASH>..<HASH> 100644
--- a/spotify/local.py
+++ b/spotify/local.py
@@ -1,4 +1,5 @@
import asyncio
+import warnings
from .http import LocalHTTPClient
@@ -12,6 +13,8 @@ class LocalClient:
The event loop the client should run on, if no loop is specifie... | Added warnings to LocalClient | py |
diff --git a/numina/recipes/__init__.py b/numina/recipes/__init__.py
index <HASH>..<HASH> 100644
--- a/numina/recipes/__init__.py
+++ b/numina/recipes/__init__.py
@@ -118,6 +118,18 @@ class RecipeResult(dict):
'''Result of the __call__ method of the Recipe.'''
pass
+class provides(object):
+ '''Decorator... | Added a @provides decorator for recipes | py |
diff --git a/hacking.py b/hacking.py
index <HASH>..<HASH> 100755
--- a/hacking.py
+++ b/hacking.py
@@ -283,10 +283,12 @@ def check_i18n():
"""
while True:
try:
- token_type, text, _, _, _ = yield
+ token_type, text, _, _, line = yield
except GeneratorExit:
... | modify hacking.py to not choke on the def of _() recent openstack-common brought in it's own def of _() which trips up our checking that all _ calls contain a message string. This explicitly excludes the definition of this in function from that check. Fixes LP Bug #<I>. Change-Id: If<I>d<I>a5ae<I>bb2e<I>c<I>b<I>b<I... | py |
diff --git a/multilingual_news/views.py b/multilingual_news/views.py
index <HASH>..<HASH> 100644
--- a/multilingual_news/views.py
+++ b/multilingual_news/views.py
@@ -1,6 +1,7 @@
"""Views for the ``multilingual_news`` app."""
from django.contrib.contenttypes.models import ContentType
from django.db.models import Q
+... | Fixing queryset to use language aware version. | py |
diff --git a/pywavefront/parser.py b/pywavefront/parser.py
index <HASH>..<HASH> 100644
--- a/pywavefront/parser.py
+++ b/pywavefront/parser.py
@@ -34,7 +34,6 @@
import codecs
import gzip
import logging
-import os
from pathlib import Path
from pywavefront.exceptions import PywavefrontException
@@ -79,15 +78,16 @@... | Compatibility: pass str to open and gzip.open | py |
diff --git a/pyee/__init__.py b/pyee/__init__.py
index <HASH>..<HASH> 100644
--- a/pyee/__init__.py
+++ b/pyee/__init__.py
@@ -65,12 +65,13 @@ class EventEmitter():
ee.emit('error', Exception('something blew up'))
"""
- def __init__(self, scheduler=ensure_future):
+ def __init__(self, scheduler=en... | Ostensibly allow setting a custom loop (tests wont pass tho) | py |
diff --git a/natasha/grammars/brand.py b/natasha/grammars/brand.py
index <HASH>..<HASH> 100644
--- a/natasha/grammars/brand.py
+++ b/natasha/grammars/brand.py
@@ -8,6 +8,7 @@ class Brand(Enum):
('word', {
'labels': [
('gram', 'LATN'),
+ ('is-capitalized', True),
... | Add is-capitalized label to brand grammar | py |
diff --git a/djangocms_blog/cms_plugins.py b/djangocms_blog/cms_plugins.py
index <HASH>..<HASH> 100644
--- a/djangocms_blog/cms_plugins.py
+++ b/djangocms_blog/cms_plugins.py
@@ -16,7 +16,7 @@ class BlogPlugin(CMSPluginBase):
module = 'Blog'
def get_render_template(self, context, instance, placeholder):
- ... | Prevents blog plugin from crashing when there is no app_config present Without this commit crashes with error: 'NoneType' object has no attribute 'template_prefix' | py |
diff --git a/src/python/twitter/pants/targets/annotation_processor.py b/src/python/twitter/pants/targets/annotation_processor.py
index <HASH>..<HASH> 100644
--- a/src/python/twitter/pants/targets/annotation_processor.py
+++ b/src/python/twitter/pants/targets/annotation_processor.py
@@ -41,6 +41,7 @@ class AnnotationPro... | AnnotationProcessor bug was already fixed... (sapling split of 2a6e<I>f0b5e7acf<I>af<I>daafcb<I>c3f<I>ecb) | py |
diff --git a/spyderlib/widgets/codeeditor/codeeditor.py b/spyderlib/widgets/codeeditor/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/codeeditor/codeeditor.py
+++ b/spyderlib/widgets/codeeditor/codeeditor.py
@@ -1251,10 +1251,11 @@ class CodeEditor(TextEditBaseWidget):
else:
... | (Fixes Issue <I>) Editor/bugfix: unindent didn't work on multiline selection when there was empty lines | py |
diff --git a/tests/contrib/sensors/test_python_sensor.py b/tests/contrib/sensors/test_python_sensor.py
index <HASH>..<HASH> 100644
--- a/tests/contrib/sensors/test_python_sensor.py
+++ b/tests/contrib/sensors/test_python_sensor.py
@@ -58,6 +58,7 @@ class PythonSensorTests(unittest.TestCase):
t = PythonSensor(
... | [AIRFLOW-XXX] Speed up tests for PythonSensor (#<I>) This _tried_ to set a timeout to 1 so that it only took 1 second to run this test, but it ended up sleeping for <I>s (the default poke_interval) instead, often making this our slowest individual test case! | py |
diff --git a/unittest/reading_test.py b/unittest/reading_test.py
index <HASH>..<HASH> 100644
--- a/unittest/reading_test.py
+++ b/unittest/reading_test.py
@@ -10,7 +10,7 @@ import unittest
class TestDynaphopy(unittest.TestCase):
def setUp(self):
- self.structure = io.read_from_file_structure_outcar('Si_d... | Add OUTCAR file to unittest data folder | py |
diff --git a/python/bigdl/dllib/utils/common.py b/python/bigdl/dllib/utils/common.py
index <HASH>..<HASH> 100644
--- a/python/bigdl/dllib/utils/common.py
+++ b/python/bigdl/dllib/utils/common.py
@@ -462,6 +462,17 @@ def create_spark_conf():
sparkConf.setAll(bigdl_conf.items())
if not is_spark_below_2_2():
... | Support BigDL for Spark on k8s (#<I>) * maybe some refactor * handle k8s master url * k8s * add doc * add more doc * add doc | py |
diff --git a/gui2py/components.py b/gui2py/components.py
index <HASH>..<HASH> 100644
--- a/gui2py/components.py
+++ b/gui2py/components.py
@@ -216,7 +216,7 @@ class Component(object):
if not isinstance(spec, InternalSpec)
and getattr(self, k) != spec.default
a... | added listing list specs in __repr__ of Component | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
setup(
name="daemonize",
- version="2.2",
+ version="2.2.1",
py_modules=["daemonize"],
author="Ilya Otyutskiy",
author_email="ilya.otyutskiy... | New version: <I>. - Just fixing stuff for PyPI. | py |
diff --git a/indra/preassembler/hierarchy_manager.py b/indra/preassembler/hierarchy_manager.py
index <HASH>..<HASH> 100644
--- a/indra/preassembler/hierarchy_manager.py
+++ b/indra/preassembler/hierarchy_manager.py
@@ -60,6 +60,8 @@ entity_file_path = os.path.join(os.path.dirname(__file__),
'../res... | Add activity hierarchy to HierarchyManager | py |
diff --git a/gwpy/plotter/utils.py b/gwpy/plotter/utils.py
index <HASH>..<HASH> 100644
--- a/gwpy/plotter/utils.py
+++ b/gwpy/plotter/utils.py
@@ -19,7 +19,9 @@
"""
import numpy
+import itertools
+from . import rcParams
from .. import version
__author__ = "Duncan Macleod <duncan.macleod@ligo.org>"
@@ -74,3 +7... | plotter.utils: two new cycles | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,9 @@
#! /usr/bin/env python
from setuptools import find_packages, setup
+import subprocess
+
+subprocess.call("apt-get install libgeos-dev")
setup(name='dingo',
author='openego development group',
@@ -16,... | Try installation of libgeos | py |
diff --git a/genes/api.py b/genes/api.py
index <HASH>..<HASH> 100644
--- a/genes/api.py
+++ b/genes/api.py
@@ -130,7 +130,12 @@ class GeneResource(ModelResource):
# or can be coerced into one.
limit = int(limit)
except ValueError:
- limit = None
+ ... | Making the limit of number results that come back for the autocomplete search equal to the GENE_RESULT_LIMIT default set at the top of the genes/api.py file. | py |
diff --git a/ccmlib/node.py b/ccmlib/node.py
index <HASH>..<HASH> 100644
--- a/ccmlib/node.py
+++ b/ccmlib/node.py
@@ -580,6 +580,17 @@ class Node(object):
else:
return False
+ def wait_for_compactions(self):
+ """
+ Wait for all compactions to finish on this node.
+ """
... | Added node.wait_for_compactions() method | py |
diff --git a/cassandra/io/asyncorereactor.py b/cassandra/io/asyncorereactor.py
index <HASH>..<HASH> 100644
--- a/cassandra/io/asyncorereactor.py
+++ b/cassandra/io/asyncorereactor.py
@@ -322,6 +322,11 @@ class AsyncoreConnection(Connection, asyncore.dispatcher):
if not self.is_defunct:
self.error_... | Fixed for a connection closed during initial handshake | py |
diff --git a/enforce_host/__init__.py b/enforce_host/__init__.py
index <HASH>..<HASH> 100644
--- a/enforce_host/__init__.py
+++ b/enforce_host/__init__.py
@@ -4,36 +4,26 @@ from django.conf import settings
from django.core.exceptions import MiddlewareNotUsed
from django.http import HttpResponsePermanentRedirect
-tr... | Remove MiddlewareMixin and other deprecated backwards-compatibility shims | py |
diff --git a/pypeaks/data.py b/pypeaks/data.py
index <HASH>..<HASH> 100644
--- a/pypeaks/data.py
+++ b/pypeaks/data.py
@@ -3,7 +3,6 @@ import pickle
from warnings import warn
import numpy as np
-import pylab as p
from scipy.ndimage.filters import gaussian_filter
import slope
@@ -284,6 +283,9 @@ class Data:
... | moved pylab import to plot function | py |
diff --git a/singularity/package/clone.py b/singularity/package/clone.py
index <HASH>..<HASH> 100644
--- a/singularity/package/clone.py
+++ b/singularity/package/clone.py
@@ -48,7 +48,7 @@ def package_node(root=None,name=None):
if root is None:
root = "/"
- tmpdir = tempfile.mkdtmp()
+ tmpdir = te... | modified: ../../../singularity/package/clone.py | py |
diff --git a/spam_lists/structures.py b/spam_lists/structures.py
index <HASH>..<HASH> 100644
--- a/spam_lists/structures.py
+++ b/spam_lists/structures.py
@@ -46,7 +46,7 @@ class CachedFactoryMixin(object):
return cls(*args, **kwargs)
-class Hostname(name.Name):
+class Hostname(CachedFactoryMixin, name.Nam... | Add CachedFactoryMixin to base classes of Hostname | py |
diff --git a/schedule_hetero_control.py b/schedule_hetero_control.py
index <HASH>..<HASH> 100755
--- a/schedule_hetero_control.py
+++ b/schedule_hetero_control.py
@@ -52,7 +52,7 @@ def calculate_jobs(root, schedule_all=False):
candidates_path = get_candidates_path(root)
for candidate_path in find_candidates(r... | skip any client-server that starts with <I>. | py |
diff --git a/lwr/lwr_client/manager.py b/lwr/lwr_client/manager.py
index <HASH>..<HASH> 100644
--- a/lwr/lwr_client/manager.py
+++ b/lwr/lwr_client/manager.py
@@ -6,6 +6,9 @@ from .client import Client, InputCachingClient
from .transport import get_transport
from .util import TransferEventManager
+from logging impo... | Handle distinction between false and None properly when setting whether to cache. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.