diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/sniffer/broadcasters.py b/sniffer/broadcasters.py
index <HASH>..<HASH> 100644
--- a/sniffer/broadcasters.py
+++ b/sniffer/broadcasters.py
@@ -82,15 +82,29 @@ except ImportError:
class Broadcaster(object):
def __init__(self, *emitters):
- self.emitters = emitters
+ self.emitters = list... | Recover from emitter errors PyNotify raises an error when showing a message if no service is available. Instead of dying when an emitter raises, that emitter is removed. If the last emitter is removed an exception is raised (because there would be no way to monitor test results). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
- version='0.4.6',
... | incement version no to <I> with the next release, a minor change of db.connection() is planned, cf. #<I> | py |
diff --git a/art/art.py b/art/art.py
index <HASH>..<HASH> 100644
--- a/art/art.py
+++ b/art/art.py
@@ -199,7 +199,22 @@ font_map = {"block": [block_dic, True], "banner": [banner_dic, False],
"eftiwall": [eftiwall_dic, False],
"fire_font-k": [fire_font_k_dic, False],
"fire_font-s":... | fix : new fonts added to list | py |
diff --git a/example_project/settings.py b/example_project/settings.py
index <HASH>..<HASH> 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -103,7 +103,7 @@ DATABASES = {
'NAME': 'swiftwind',
'HOST': '127.0.0.1',
'PORT': '5432',
- 'USER': getpass.getuser()... | Changing default database username to 'postgres' (as this is common when using docker) | py |
diff --git a/tests_regression/test_rinoh.py b/tests_regression/test_rinoh.py
index <HASH>..<HASH> 100644
--- a/tests_regression/test_rinoh.py
+++ b/tests_regression/test_rinoh.py
@@ -33,7 +33,8 @@ def test_list_formats(script_runner):
def collect_tests():
for rst_path in sorted(RINOH_PATH.glob('*.rst')):
- ... | Mark rinoh install_resources test as XFAIL As part of the tests run on GitHub Actions, this test (almost?) always fails because the section numbers 5 and 6 are output instead of 1 and 2. I have not been able to reproduce this issue consistently so that it could be debugged. | py |
diff --git a/utility/ias_proxy/tests/test_ias_proxy/test_ias_proxy.py b/utility/ias_proxy/tests/test_ias_proxy/test_ias_proxy.py
index <HASH>..<HASH> 100644
--- a/utility/ias_proxy/tests/test_ias_proxy/test_ias_proxy.py
+++ b/utility/ias_proxy/tests/test_ias_proxy/test_ias_proxy.py
@@ -66,9 +66,7 @@ class TestIasProxyC... | Fix certificate PEM file for IAS proxy tests | py |
diff --git a/FlowCytometryTools/core/bases.py b/FlowCytometryTools/core/bases.py
index <HASH>..<HASH> 100755
--- a/FlowCytometryTools/core/bases.py
+++ b/FlowCytometryTools/core/bases.py
@@ -19,7 +19,6 @@ from GoreUtilities.util import get_files, save, load, to_list, get_tag_value
from GoreUtilities import graph
impo... | MINOR: Removing accidental commit of warnings package | py |
diff --git a/model_settings/models.py b/model_settings/models.py
index <HASH>..<HASH> 100644
--- a/model_settings/models.py
+++ b/model_settings/models.py
@@ -9,7 +9,12 @@ from django.db.models.fields.files import FieldFile, ImageFieldFile
from django.db.models.query import QuerySet
from model_settings.utils import S... | Fix polymorphic import for different versions. | py |
diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py
index <HASH>..<HASH> 100644
--- a/buildozer/targets/android.py
+++ b/buildozer/targets/android.py
@@ -27,6 +27,7 @@ from buildozer import IS_PY3
from buildozer.target import Target
from os import environ
from os.path import exists, join, realpa... | Fixed <I> bit detection (it failed under python3) | py |
diff --git a/identities/models.py b/identities/models.py
index <HASH>..<HASH> 100644
--- a/identities/models.py
+++ b/identities/models.py
@@ -87,7 +87,10 @@ class OptOut(models.Model):
@receiver(post_save, sender=OptOut)
-def handle_optout(sender, instance, **kwargs):
+def handle_optout(sender, instance, created,... | return from post_save if OptOut was not created | py |
diff --git a/doc/sphinxext/ipython_directive.py b/doc/sphinxext/ipython_directive.py
index <HASH>..<HASH> 100644
--- a/doc/sphinxext/ipython_directive.py
+++ b/doc/sphinxext/ipython_directive.py
@@ -344,7 +344,11 @@ class EmbeddedSphinxShell(object):
splitter.push(line)
more = splitter.push_ac... | BLD/DOC: fix ipython_directive to workaround ipython/<I> | py |
diff --git a/path.py b/path.py
index <HASH>..<HASH> 100644
--- a/path.py
+++ b/path.py
@@ -101,7 +101,7 @@ o666 = 438
o554 = 364
################################
-__version__ = '4.2'
+__version__ = '4.3'
__all__ = ['path'] | Bump to <I> in preparation for release | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,6 @@ setup(name='pyprofiler',
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Operating System :: POSIX",
"Topic :: Software Development :: Librarie... | pip Tuesday <I> March <I> (week:<I> day:<I>), <I>:<I>:<I> | py |
diff --git a/tests/unit/Events/test_BEventsWithFile.py b/tests/unit/Events/test_BEventsWithFile.py
index <HASH>..<HASH> 100644
--- a/tests/unit/Events/test_BEventsWithFile.py
+++ b/tests/unit/Events/test_BEventsWithFile.py
@@ -13,7 +13,7 @@ except ImportError:
##______________________________________________________... | skip the test case TestBEventsWithFile() | py |
diff --git a/insanities/web/url_templates.py b/insanities/web/url_templates.py
index <HASH>..<HASH> 100644
--- a/insanities/web/url_templates.py
+++ b/insanities/web/url_templates.py
@@ -85,30 +85,6 @@ class Integer(Converter):
return str(value)
-class Boolean(Converter):
- '''
- Translates on/off, t... | Impractical Boolean URL converter is removed (repeated after incorrect merge) | py |
diff --git a/galpy/potential_src/PowerSphericalPotential.py b/galpy/potential_src/PowerSphericalPotential.py
index <HASH>..<HASH> 100644
--- a/galpy/potential_src/PowerSphericalPotential.py
+++ b/galpy/potential_src/PowerSphericalPotential.py
@@ -122,6 +122,24 @@ class PowerSphericalPotential(Potential):
retur... | add z2deriv to Power and TwoPowerSpericalPotential | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,8 @@ long_description = (
"Scout Application Performance Monitoring Agent - https://scoutapm.com"
)
if os.path.exists("README.md"):
- long_description = open("README.md").read()
+ with open("README.md", "r... | Avoid leaving file open in setup.py | py |
diff --git a/eulfedora/models.py b/eulfedora/models.py
index <HASH>..<HASH> 100644
--- a/eulfedora/models.py
+++ b/eulfedora/models.py
@@ -1601,11 +1601,15 @@ class DigitalObject(six.with_metaclass(DigitalObjectType, object)):
def _ingest(self, logMessage):
foxml = self._build_foxml_for_ingest()
- ... | Remove unneeded utf-8 decode in DigitalObject ingest method | py |
diff --git a/openstack_dashboard/api/rest/keystone.py b/openstack_dashboard/api/rest/keystone.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/api/rest/keystone.py
+++ b/openstack_dashboard/api/rest/keystone.py
@@ -506,7 +506,7 @@ class Project(generic.View):
@urls.register
class ProjectRole(generic.View):
... | Keystone project role REST is broken There is an extra white space in the REST url making it impossible to reach the endpoint. Removing the white space will fix this issue. Change-Id: Ic<I>d<I>c0bc<I>a<I>bda<I>a<I>f<I> Closes-Bug: #<I> | py |
diff --git a/splinter/driver/webdriver/__init__.py b/splinter/driver/webdriver/__init__.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/webdriver/__init__.py
+++ b/splinter/driver/webdriver/__init__.py
@@ -77,6 +77,9 @@ class BaseWebDriver(DriverAPI):
def back(self):
self.driver.back()
+ def for... | Implemented forward method on webdriver | py |
diff --git a/ella/api/middleware.py b/ella/api/middleware.py
index <HASH>..<HASH> 100644
--- a/ella/api/middleware.py
+++ b/ella/api/middleware.py
@@ -3,6 +3,7 @@ from django.utils.cache import patch_vary_headers
from ella.api.conf import api_settings
+
class VaryOnAcceptMiddleware(object):
def __init__(self... | fix pep8 on api middleware: E<I> expected 2 blank lines, found 1 | py |
diff --git a/tweepy/api.py b/tweepy/api.py
index <HASH>..<HASH> 100644
--- a/tweepy/api.py
+++ b/tweepy/api.py
@@ -1173,14 +1173,14 @@ class API(object):
def list_members(self):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-members
... | add count to list_members() | py |
diff --git a/tests/unit/py2/nupic/algorithms/anomaly_test.py b/tests/unit/py2/nupic/algorithms/anomaly_test.py
index <HASH>..<HASH> 100755
--- a/tests/unit/py2/nupic/algorithms/anomaly_test.py
+++ b/tests/unit/py2/nupic/algorithms/anomaly_test.py
@@ -114,6 +114,7 @@ class AnomalyTest(unittest.TestCase):
self.asser... | Anomaly: skip offending test | py |
diff --git a/airflow/cli/cli_parser.py b/airflow/cli/cli_parser.py
index <HASH>..<HASH> 100644
--- a/airflow/cli/cli_parser.py
+++ b/airflow/cli/cli_parser.py
@@ -1323,13 +1323,13 @@ class AirflowHelpFormatter(argparse.HelpFormatter):
self._indent()
subactions = action._get_subactions() # p... | Fix typo in airflow/cli/cli_parser.py (#<I>) `action_subcommnads` -> `action_subcommands` `group_subcommnands` -> `group_subcommands` | py |
diff --git a/grimoire_elk/elastic.py b/grimoire_elk/elastic.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elastic.py
+++ b/grimoire_elk/elastic.py
@@ -32,7 +32,7 @@ from time import time
import requests
from grimoire_elk.errors import ELKError
-from grimoire_elk.elk.utils import unixtime_to_datetime, grimoire_c... | [elastic] Replace elk with enriched in import section This code replaces the elk package reference in the import section. | py |
diff --git a/mpv.py b/mpv.py
index <HASH>..<HASH> 100644
--- a/mpv.py
+++ b/mpv.py
@@ -14,6 +14,12 @@ if os.name == 'nt':
backend = CDLL(ctypes.util.find_library('mpv-1.dll'))
fs_enc = 'utf-8'
else:
+ import locale
+ lc, enc = locale.getlocale(locale.LC_NUMERIC)
+ # libmpv requires LC_NUMERIC to be ... | Set LC_NUMERIC to C to avoid segfaults on some platforms | py |
diff --git a/pyam_analysis/core.py b/pyam_analysis/core.py
index <HASH>..<HASH> 100644
--- a/pyam_analysis/core.py
+++ b/pyam_analysis/core.py
@@ -10,8 +10,12 @@ import warnings
import re
import numpy as np
import pandas as pd
-import matplotlib.pyplot as plt
-import seaborn as sns
+
+try:
+ import matplotlib.pyp... | put matplotlib import into try/pass | py |
diff --git a/braceexpand.py b/braceexpand.py
index <HASH>..<HASH> 100644
--- a/braceexpand.py
+++ b/braceexpand.py
@@ -205,5 +205,7 @@ def _flatten(t, escape):
if __name__ == '__main__':
import doctest
- doctest.testmod(optionflags=doctest.IGNORE_EXCEPTION_DETAIL)
-
+ import sys
+ failed, _ = doctest.t... | Failing doctests should return non-zero exit code | py |
diff --git a/salt/beacons/status.py b/salt/beacons/status.py
index <HASH>..<HASH> 100644
--- a/salt/beacons/status.py
+++ b/salt/beacons/status.py
@@ -87,8 +87,6 @@ markers for specific list items:
to check the minion log for errors after configuring this beacon.
"""
-
-
import datetime
import logging | Drop Py2 and six on salt/beacons/status.py | py |
diff --git a/tests/integration/shell/key.py b/tests/integration/shell/key.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/key.py
+++ b/tests/integration/shell/key.py
@@ -33,16 +33,9 @@ class KeyTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
'''
data = self.run_key('-L... | fix test that broke because of output changes | py |
diff --git a/src/ossos-pipeline/ossos/ssos.py b/src/ossos-pipeline/ossos/ssos.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/ssos.py
+++ b/src/ossos-pipeline/ossos/ssos.py
@@ -60,11 +60,11 @@ class TracksParser(object):
print self.orbit
print self.orbit.residuals
- self.orbit.p... | Set the date range on the rate calculation to be from between the start and end of observations that went into the fit. | py |
diff --git a/toytree/__init__.py b/toytree/__init__.py
index <HASH>..<HASH> 100644
--- a/toytree/__init__.py
+++ b/toytree/__init__.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-__version__ = "0.1.3"
+__version__ = "0.1.4"
__author__ = "Deren Eaton" | "Updating toytree/__init__.py to version - <I> | py |
diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/pytester.py
+++ b/src/_pytest/pytester.py
@@ -904,13 +904,13 @@ class Pytester:
self._monkeypatch.syspath_prepend(str(path))
- def mkdir(self, name: str) -> Path:
+ def mkdir(self, name: Union... | Let mkdir() and mkpydir() receive PathLike names These pytester utility methods were annotated to only receive `str` names, but they naturally support os.PathLike values, as well. This makes writing some pytester calls a little nicer, such as when creating a directory based on a `.joinpath()` call. We previously need... | py |
diff --git a/sos/collector/__init__.py b/sos/collector/__init__.py
index <HASH>..<HASH> 100644
--- a/sos/collector/__init__.py
+++ b/sos/collector/__init__.py
@@ -366,6 +366,7 @@ class SoSCollector(SoSComponent):
self.close_all_connections()
except Exception:
pass
+ self.cleanu... | [collector] Always cleanup on graceful exit Rather than leave spurious temp directories on the filesystem from gracefully failed runs, always run cleanup(). | py |
diff --git a/pyemma/msm/models/msm.py b/pyemma/msm/models/msm.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/models/msm.py
+++ b/pyemma/msm/models/msm.py
@@ -185,8 +185,7 @@ class MSM(_Model, SerializableMixIn):
raise ValueError('T is not a transition matrix.')
# set states
s... | [msm] set reversible based on input | py |
diff --git a/nodeconductor/server/admin/dashboard.py b/nodeconductor/server/admin/dashboard.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/server/admin/dashboard.py
+++ b/nodeconductor/server/admin/dashboard.py
@@ -156,6 +156,7 @@ class CustomIndexDashboard(FluentIndexDashboard):
self.children.append(modul... | Hide installed components list by default [WAL-<I>] | py |
diff --git a/dsmr_parser/clients/serial_.py b/dsmr_parser/clients/serial_.py
index <HASH>..<HASH> 100644
--- a/dsmr_parser/clients/serial_.py
+++ b/dsmr_parser/clients/serial_.py
@@ -30,7 +30,7 @@ class SerialReader(object):
"""
with serial.Serial(**self.serial_settings) as serial_handle:
... | Read more data from serial port at once A telegram can contain dozens of lines. Reading them one by one is somewhat inefficient. With this change, the client tries to read all data that is available. This significantly reduced CPU load for me. | py |
diff --git a/gdax/order_book.py b/gdax/order_book.py
index <HASH>..<HASH> 100644
--- a/gdax/order_book.py
+++ b/gdax/order_book.py
@@ -29,6 +29,13 @@ class OrderBook(WebsocketClient):
''' Currently OrderBook only supports a single product even though it is stored as a list of products. '''
return self... | Re-initialize OrderBook on open If OrderBook is closed, then reopened, the accuracy of the data can no longer be trusted. Setting _sequence = -1 on open resets the _asks and _bids members as well so we can start with a fresh and accurate OrderBook. | py |
diff --git a/claripy/vsa/strided_interval.py b/claripy/vsa/strided_interval.py
index <HASH>..<HASH> 100644
--- a/claripy/vsa/strided_interval.py
+++ b/claripy/vsa/strided_interval.py
@@ -1046,8 +1046,13 @@ class StridedInterval(BackendObject):
@property
@reversed_processor
def max(self):
+ """
+ ... | Redefine max and min for StridedInterval | py |
diff --git a/karaage/test_data/initial_ldap_data.py b/karaage/test_data/initial_ldap_data.py
index <HASH>..<HASH> 100644
--- a/karaage/test_data/initial_ldap_data.py
+++ b/karaage/test_data/initial_ldap_data.py
@@ -99,4 +99,11 @@ test_ldif = [
'cn: Example',
'description: Example',
'',
+ 'dn: cn=TestP... | Updated initial LDAP data for testing | py |
diff --git a/test/test_pooling_base.py b/test/test_pooling_base.py
index <HASH>..<HASH> 100644
--- a/test/test_pooling_base.py
+++ b/test/test_pooling_base.py
@@ -1041,7 +1041,7 @@ class _TestMaxOpenSockets(_TestPoolingBase):
To be run both with threads and with greenlets.
"""
def get_pool_with_wait_queu... | Fix pooling tests to use imported host and port. | py |
diff --git a/git/remote.py b/git/remote.py
index <HASH>..<HASH> 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -480,7 +480,7 @@ class Remote(LazyMixin, Iterable):
print >> sys.stderr, line
continue
elif line.startswith('fatal:'):
- raise GitCommandError("Error when fetching: %s" % line)
+ raise G... | remote: fixed incorrect call signature when instantiating GitCommandError | py |
diff --git a/rwslib/extras/rwscmd/odmutils.py b/rwslib/extras/rwscmd/odmutils.py
index <HASH>..<HASH> 100644
--- a/rwslib/extras/rwscmd/odmutils.py
+++ b/rwslib/extras/rwscmd/odmutils.py
@@ -8,7 +8,6 @@ from enum import Enum
ODM_NS = '{http://www.cdisc.org/ns/odm/v1.3}'
MDSOL_NS = '{http://www.mdsol.com/ns/odm/metada... | Removed NS_MAP as was unused. Annotated Enums with docstring | py |
diff --git a/tipue_search/tipue_search.py b/tipue_search/tipue_search.py
index <HASH>..<HASH> 100644
--- a/tipue_search/tipue_search.py
+++ b/tipue_search/tipue_search.py
@@ -37,7 +37,7 @@ class Tipue_Search_JSON_Generator(object):
page_title = soup_title.get_text(' ', strip=True).replace('“', '"').replace('”'... | Escape "^" in the json file because it is a special character for tique search. | py |
diff --git a/esridump/dumper.py b/esridump/dumper.py
index <HASH>..<HASH> 100644
--- a/esridump/dumper.py
+++ b/esridump/dumper.py
@@ -168,7 +168,10 @@ class EsriDumper(object):
headers = self._build_headers()
response = self._request('GET', url, params=query_args, headers=headers)
oid_data =... | raising EsriDownloadError if server does not support returnIdsOnly so fallback works correctly, logging | py |
diff --git a/src/hamster/db.py b/src/hamster/db.py
index <HASH>..<HASH> 100644
--- a/src/hamster/db.py
+++ b/src/hamster/db.py
@@ -479,6 +479,8 @@ class Storage(storage.Storage):
WHERE fact_id = ?"""
self.execute(tag_update, (new_fact_id, fact["id"])) #clone tags
... | split and no-hands trophies | py |
diff --git a/firebirdsql/fbcore.py b/firebirdsql/fbcore.py
index <HASH>..<HASH> 100755
--- a/firebirdsql/fbcore.py
+++ b/firebirdsql/fbcore.py
@@ -240,7 +240,10 @@ class XSQLVAR:
def value(self, raw_value):
if self.sqltype in (SQL_TYPE_TEXT, SQL_TYPE_VARYING):
- return self.bytes_to_str(raw_v... | string value return as is (not convert to unicode string) in Python 2.x | py |
diff --git a/mediasync/management/commands/syncmedia.py b/mediasync/management/commands/syncmedia.py
index <HASH>..<HASH> 100644
--- a/mediasync/management/commands/syncmedia.py
+++ b/mediasync/management/commands/syncmedia.py
@@ -10,7 +10,7 @@ class Command(BaseCommand):
requires_model_validation = False
... | add --force option to management command to force all files to be pushed | py |
diff --git a/danceschool/core/models.py b/danceschool/core/models.py
index <HASH>..<HASH> 100644
--- a/danceschool/core/models.py
+++ b/danceschool/core/models.py
@@ -3641,7 +3641,7 @@ class EventRegistration(EmailRecipientMixin, models.Model):
context.update({
'dropIn': self.dropIn,
- ... | Email sending was failing for event registrations without roles. | py |
diff --git a/internetarchive/search.py b/internetarchive/search.py
index <HASH>..<HASH> 100644
--- a/internetarchive/search.py
+++ b/internetarchive/search.py
@@ -175,6 +175,8 @@ class Search(object):
j = r.json()
scroll_id = j.get('_scroll_id')
hits = j.get('hits', dict()).get('h... | Fixed bug in fts. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ with open(path.join(here, 'README.md')) as f: # , encoding='utf-8'
setup(
# Metadata
name="inscriptis",
- version="0.0.4.1",
+ version="0.0.4.1.1",
description='inscriptis - HTML to text c... | chg: upped version number. | py |
diff --git a/tests/device_tests/test_protect_call.py b/tests/device_tests/test_protect_call.py
index <HASH>..<HASH> 100644
--- a/tests/device_tests/test_protect_call.py
+++ b/tests/device_tests/test_protect_call.py
@@ -121,7 +121,7 @@ class TestProtectCall(common.TrezorTest):
if attempts <= 1:
... | device_tests: Fix test_protect_call | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ if sys.argv[-1] == 'publish':
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
-install_requires = ['django', 'markups', 'sh', 'docutils', 'rst2html5', 'p... | pip didnt find dep in lowercase | py |
diff --git a/tmc/__main__.py b/tmc/__main__.py
index <HASH>..<HASH> 100644
--- a/tmc/__main__.py
+++ b/tmc/__main__.py
@@ -77,6 +77,8 @@ def configure(server=None, username=None, password=None, id=None):
server = input("Server url [https://tmc.mooc.fi/mooc/]: ")
if len(server) == 0:
serve... | Fix: Ensure trailing '/' in server URL given by user | py |
diff --git a/kubernetes/K8sDeployment.py b/kubernetes/K8sDeployment.py
index <HASH>..<HASH> 100644
--- a/kubernetes/K8sDeployment.py
+++ b/kubernetes/K8sDeployment.py
@@ -324,12 +324,15 @@ class K8sDeployment(K8sObject):
"""
if name is None:
- raise SyntaxError('Deployment: name: [ {0} ] ... | K8sDeployment: newlines for clarity | py |
diff --git a/examples/deploy_local_file_resource.py b/examples/deploy_local_file_resource.py
index <HASH>..<HASH> 100644
--- a/examples/deploy_local_file_resource.py
+++ b/examples/deploy_local_file_resource.py
@@ -18,6 +18,7 @@ async def main():
# connect to current model with current user, per Juju CLI
awai... | Make sure we cleanup even if fails in example | py |
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/engine.py
+++ b/openquake/engine/engine.py
@@ -311,6 +311,7 @@ def run_calc(job_id, oqparam, log_level, log_file, exports,
if job_zip: # the input was zipped from the beginning
... | Added a log [skip CI] | py |
diff --git a/mutagen/mp4/__init__.py b/mutagen/mp4/__init__.py
index <HASH>..<HASH> 100644
--- a/mutagen/mp4/__init__.py
+++ b/mutagen/mp4/__init__.py
@@ -360,16 +360,16 @@ class MP4Tags(DictProxy, Metadata):
except (TypeError, ValueError) as s:
reraise(MP4MetadataValueError, s, sys.exc_in... | mp4/py3: use the right types for the assert this didn't check anything with py3 | py |
diff --git a/docker/Dockerfile.py b/docker/Dockerfile.py
index <HASH>..<HASH> 100644
--- a/docker/Dockerfile.py
+++ b/docker/Dockerfile.py
@@ -58,18 +58,20 @@ motd = heredoc('''
motd = ''.join(l + '\\n\\\n' for l in motd.splitlines())
print(heredoc('''
- FROM ubuntu:16.10
+ FROM ubuntu:16.04
RUN ap... | deadsnakes PPA. | py |
diff --git a/aioftp/server.py b/aioftp/server.py
index <HASH>..<HASH> 100644
--- a/aioftp/server.py
+++ b/aioftp/server.py
@@ -1112,6 +1112,9 @@ class Server(AbstractServer):
yield from self.user_manager.notify_logout(connection.user)
+ del connection.user
+ del connection.logged
+
... | repeat USER and PASS commands handling #<I> | py |
diff --git a/examples/robots.py b/examples/robots.py
index <HASH>..<HASH> 100755
--- a/examples/robots.py
+++ b/examples/robots.py
@@ -59,9 +59,8 @@ class GameState:
}
if input in dirs:
- old_pos = lens(self).player.get()
- new_pos = add_vectors(old_pos, dirs[input])
- ... | simplified lens usage in robots.py example | py |
diff --git a/billy/importers/bills.py b/billy/importers/bills.py
index <HASH>..<HASH> 100644
--- a/billy/importers/bills.py
+++ b/billy/importers/bills.py
@@ -132,6 +132,10 @@ def import_bill(data, votes, categorizer):
id = get_legislator_id(abbr, data['session'], None,
sponsor[... | Adding in committee matching to sponsors. Very beta. | py |
diff --git a/jupytext/jupytext.py b/jupytext/jupytext.py
index <HASH>..<HASH> 100644
--- a/jupytext/jupytext.py
+++ b/jupytext/jupytext.py
@@ -77,11 +77,13 @@ class TextNotebookReader(NotebookReader):
set_main_and_cell_language(metadata, cells, self.ext)
- if 'nbrmd_formats' in metadata:
- ... | Improve backward compatibility with nbrmd | py |
diff --git a/monty/collections.py b/monty/collections.py
index <HASH>..<HASH> 100644
--- a/monty/collections.py
+++ b/monty/collections.py
@@ -7,6 +7,8 @@ __maintainer__ = 'Shyue Ping Ong'
__email__ = 'ongsp@ucsd.edu'
__date__ = '1/24/14'
+import collections
+
class frozendict(dict):
"""
@@ -88,8 +90,7 @@ c... | Unit tests for MongoDict | py |
diff --git a/scripts/clear_node.py b/scripts/clear_node.py
index <HASH>..<HASH> 100755
--- a/scripts/clear_node.py
+++ b/scripts/clear_node.py
@@ -6,29 +6,6 @@ import argparse
import re
-try:
- import pyorient
- ORIENTDB_HOST = "localhost"
- ORIENTDB_PORT = 2424
- ORIENTDB_USER = "root"
- ORIENTDB_P... | remove cleanup of orientdb (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -74,7 +74,7 @@ else:
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
- install_... | Latest matplotlib (<I>) has bug copying rcParams, setting install_requires version to <=<I> until fixed | py |
diff --git a/src/resolvelib/resolvers.py b/src/resolvelib/resolvers.py
index <HASH>..<HASH> 100644
--- a/src/resolvelib/resolvers.py
+++ b/src/resolvelib/resolvers.py
@@ -248,7 +248,8 @@ class Resolution(object):
name, crit = self._merge_into_criterion(r, parent=None)
except RequirementsCo... | Fix ResolutionImpossible building from criterion | py |
diff --git a/salt/modules/npm.py b/salt/modules/npm.py
index <HASH>..<HASH> 100644
--- a/salt/modules/npm.py
+++ b/salt/modules/npm.py
@@ -184,7 +184,9 @@ def list_(pkg=None, dir=None):
result = __salt__['cmd.run_all'](cmd, cwd=dir)
- if result['retcode'] != 0:
+ # npm will return error code 1 for both n... | don't fail for no files found Fixes #<I> | py |
diff --git a/insights/client/collection_rules.py b/insights/client/collection_rules.py
index <HASH>..<HASH> 100644
--- a/insights/client/collection_rules.py
+++ b/insights/client/collection_rules.py
@@ -156,11 +156,10 @@ class InsightsConfig(object):
"""
Write collections rules to disk
"""
- ... | Truncate .cache.json when opening file descriptor (#<I>) If os.O_TRUNC bit mask is not applied, then for some mysterious reason the file will not be written to disk, even though there is no error to be found. | py |
diff --git a/identifier/functions/malloc.py b/identifier/functions/malloc.py
index <HASH>..<HASH> 100644
--- a/identifier/functions/malloc.py
+++ b/identifier/functions/malloc.py
@@ -60,8 +60,8 @@ class malloc(Func):
return False
# if they are all multiples of 0x1000 it seems to be always callin... | Disable an overly-restrictive constrait in malloc identification. | py |
diff --git a/cherrypy/lib/sessions.py b/cherrypy/lib/sessions.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/sessions.py
+++ b/cherrypy/lib/sessions.py
@@ -131,7 +131,7 @@ class Session(object):
# clean_up is in instancemethod and not a classmethod,
# so that tool config can be accessed ins... | <I>/<I> fix for #<I> (Session tool cleanup frequency). | py |
diff --git a/vcstool/clients/git.py b/vcstool/clients/git.py
index <HASH>..<HASH> 100644
--- a/vcstool/clients/git.py
+++ b/vcstool/clients/git.py
@@ -76,6 +76,12 @@ class GitClient(VcsClientBase):
(branch_with_remote, branch_name)
remote = branch_with_remote[:-len(suffix)]
+ ... | fix export if local branch has same name as ref (fix #<I>) | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -237,7 +237,12 @@ def check_fabalicious_version(required_version, msg):
required_version = str(required_version)
if not check_fabalicious_version.version:
- app_folder = os.path.dirname(os.path.realpath(__fi... | FIx an issue, where getting the current fabablicious-version fails, when running the compiled fabfile.py | py |
diff --git a/features/environment.py b/features/environment.py
index <HASH>..<HASH> 100644
--- a/features/environment.py
+++ b/features/environment.py
@@ -16,6 +16,11 @@
import docker
from docker.utils import kwargs_from_env
+from docker.errors import NotFound
+
+
+IMAGE = "busybox:latest"
+
def before_all(ctx):... | behave: don't pull image when it's present faster local test runs | py |
diff --git a/pyscreenshot/__init__.py b/pyscreenshot/__init__.py
index <HASH>..<HASH> 100644
--- a/pyscreenshot/__init__.py
+++ b/pyscreenshot/__init__.py
@@ -3,6 +3,7 @@ from pyscreenshot.backendloader import BackendLoader
import Image
import logging
import tempfile
+import sys
__version__ = '0.3.1'
@@ -31,7 +... | Replace explicit 'python' reference with sys.executable - so it runs in the currently executing python | py |
diff --git a/tests/input_logictree_unittest.py b/tests/input_logictree_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/input_logictree_unittest.py
+++ b/tests/input_logictree_unittest.py
@@ -72,6 +72,7 @@ def _make_nrml(content):
%s
</nrml>""" % content
+
def _whatever_sourcemodel():
return _m... | tests/logictree: fixed a couple of pep8 warnings Former-commit-id: 6f3d<I>d<I>ad<I>e<I>bdb<I>c | py |
diff --git a/horizon/themes.py b/horizon/themes.py
index <HASH>..<HASH> 100644
--- a/horizon/themes.py
+++ b/horizon/themes.py
@@ -130,18 +130,24 @@ class ThemeTemplateLoader(tLoaderCls):
pass
try:
+ template_path = safe_join(
+ getattr(
+ setting... | Django compressor cannot find custom theme templates An else condition was missed in the Theme Template loader. Some templates that are loaded from a theme do start with '/', so another elif was added to catching this possibility. Closes-bug: #<I> Change-Id: I<I>e<I>d5abdcb2ab<I>f1a0c8e7af7fc7f<I>aff1e | py |
diff --git a/meshio/gmsh/_gmsh22.py b/meshio/gmsh/_gmsh22.py
index <HASH>..<HASH> 100644
--- a/meshio/gmsh/_gmsh22.py
+++ b/meshio/gmsh/_gmsh22.py
@@ -136,10 +136,11 @@ def _read_cells(f, cells, point_tags, is_ascii):
for ic, (ct, cd) in enumerate(cells):
cells[ic] = (ct, remap[cd])
- # Fast forward ... | stop at EOF and warn if $EndElements omitted | py |
diff --git a/pyam_analysis/core.py b/pyam_analysis/core.py
index <HASH>..<HASH> 100644
--- a/pyam_analysis/core.py
+++ b/pyam_analysis/core.py
@@ -148,7 +148,18 @@ class IamDataFrame(object):
"""
return list(self.select(filters, ['scenario']).scenario)
- def variables(self, filters={}):
+ def ... | add standard function to get list of regions | py |
diff --git a/albumentations/augmentations/transforms.py b/albumentations/augmentations/transforms.py
index <HASH>..<HASH> 100644
--- a/albumentations/augmentations/transforms.py
+++ b/albumentations/augmentations/transforms.py
@@ -571,7 +571,7 @@ class RandomGridShuffle(DualTransform):
class Normalize(ImageOnlyTra... | Update Normalize docstring (#<I>) | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -6,7 +6,7 @@
import os
import subprocess
-_BASE_VERSION = "2.0.9"
+_BASE_VERSION = "2.0.10"
def _generate_version(base_version): | dvc: bump to <I> | py |
diff --git a/zipline/optimize/factory.py b/zipline/optimize/factory.py
index <HASH>..<HASH> 100644
--- a/zipline/optimize/factory.py
+++ b/zipline/optimize/factory.py
@@ -21,6 +21,7 @@ Author: Thomas V. Wiecki (thomas.wiecki@gmail.com), 2012
"""
from datetime import timedelta
+from zipline.utils.protocol_utils impo... | Changes import of ndict in optimize to avoid threading through protocol. | py |
diff --git a/meshio/vtk_io.py b/meshio/vtk_io.py
index <HASH>..<HASH> 100755
--- a/meshio/vtk_io.py
+++ b/meshio/vtk_io.py
@@ -276,9 +276,7 @@ def _read_sub_section(f, info):
if info.section[1:] == "_COORDINATES":
info.num_points = int(info.split[1])
data_type = info.split[2].lower()
... | vtk_io blackened | py |
diff --git a/test/autofit/test_non_linear.py b/test/autofit/test_non_linear.py
index <HASH>..<HASH> 100644
--- a/test/autofit/test_non_linear.py
+++ b/test/autofit/test_non_linear.py
@@ -1,6 +1,7 @@
import os
import shutil
from functools import wraps
+import itertools
import pytest
from autolens import conf
@@ -... | resetting _id/component number for testing | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/codeowners.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/codeowners.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/codeowners.py
+++ b/datadog_checks_dev/datadog_chec... | Allow codeowner validation to fail on CI (#<I>) * Fail if no codeowner * Add import * Format import | py |
diff --git a/taskw/warrior.py b/taskw/warrior.py
index <HASH>..<HASH> 100644
--- a/taskw/warrior.py
+++ b/taskw/warrior.py
@@ -429,11 +429,7 @@ class TaskWarriorShellout(TaskWarriorBase):
raise UnsupportedVersionException(
"'sync' requires version 2.3 of taskwarrior or later."
... | Switch .sync to also utilize common _execute interface. | py |
diff --git a/ceam/framework/lookup.py b/ceam/framework/lookup.py
index <HASH>..<HASH> 100644
--- a/ceam/framework/lookup.py
+++ b/ceam/framework/lookup.py
@@ -59,7 +59,7 @@ class InterpolatedTableView(TableView):
for column, func in funcs.items():
interpolated_columns = tuple(sub_pop[k] if... | Switch to a better interpolation method for the one-d case | py |
diff --git a/grimoire_elk/enriched/gitlab.py b/grimoire_elk/enriched/gitlab.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/gitlab.py
+++ b/grimoire_elk/enriched/gitlab.py
@@ -264,6 +264,9 @@ class GitLabEnrich(Enrich):
# The real data
merge_request = item['data']
+ # merge request... | [enrich-gitlab] Add doc for `time_to_close_days` and `time_to_merge_days` This code adds information about why/how the variables `time_to_close_days` and `time_to_merge_days` are calculated. | py |
diff --git a/openpnm/utils/_project.py b/openpnm/utils/_project.py
index <HASH>..<HASH> 100644
--- a/openpnm/utils/_project.py
+++ b/openpnm/utils/_project.py
@@ -248,15 +248,19 @@ class Project(list):
If no Phase object can be found, then an Exception is raised.
"""
+ # If received algorithm... | Add exception when an algorithm is received by Project.find_phase | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,15 +8,10 @@ import svtplay_dl
deps = []
-if sys.version_info[0] == 2 and sys.version_info[1] <= 7 and sys.version_info[2] < 9:
- deps.append("requests>=2.0.0")
- deps.append("PySocks")
- deps.append("pyOpenSSL... | Update setup.py Remove py2 references and add pycryptodome as a deps. fixes #<I> | py |
diff --git a/fleece/cli/run/run.py b/fleece/cli/run/run.py
index <HASH>..<HASH> 100644
--- a/fleece/cli/run/run.py
+++ b/fleece/cli/run/run.py
@@ -184,6 +184,9 @@ def run(args):
for line in iter(process.stdout.readline, ''):
sys.stdout.write(line)
+ return_code = process.wait()
+ sys.exit(return_c... | Make sure to capture and return the exit code from fleece run | py |
diff --git a/wasp_general/command/enhanced.py b/wasp_general/command/enhanced.py
index <HASH>..<HASH> 100644
--- a/wasp_general/command/enhanced.py
+++ b/wasp_general/command/enhanced.py
@@ -375,17 +375,6 @@ class WCommandArgumentParser:
description += (' (%s)' % ', '.join(meta))
result.append((argument_name... | wasp_general/command/enhanced.py: comments clean up | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -175,6 +175,7 @@ from openquake.baselib.general import (
cpu_count = multiprocessing.cpu_count()
OQ_DISTRIBUTE = os.environ.get('OQ_DISTRIBU... | Added a warning on OQ_DISTRIBUTE=futures [skip CI] | py |
diff --git a/ginga/gtk3w/Widgets.py b/ginga/gtk3w/Widgets.py
index <HASH>..<HASH> 100644
--- a/ginga/gtk3w/Widgets.py
+++ b/ginga/gtk3w/Widgets.py
@@ -1470,8 +1470,14 @@ class Splitter(ContainerBase):
def add_widget(self, child):
self.add_ref(child)
child_w = child.get_widget()
+
+ # witho... | Improve visibility of items separated by a Splitter--gtk3 backend | py |
diff --git a/h2o-perf/bench/py/h2oPerf/H2O.py b/h2o-perf/bench/py/h2oPerf/H2O.py
index <HASH>..<HASH> 100644
--- a/h2o-perf/bench/py/h2oPerf/H2O.py
+++ b/h2o-perf/bench/py/h2oPerf/H2O.py
@@ -178,7 +178,7 @@ class H2OCloudNode:
Get process_total_ticks, system_total_ticks, sys_idle_ticks.
"""
#... | reduce max tries and gracefully continue when cannot get /proc | py |
diff --git a/hatemile/util/css/tinycss/tinycssparser.py b/hatemile/util/css/tinycss/tinycssparser.py
index <HASH>..<HASH> 100644
--- a/hatemile/util/css/tinycss/tinycssparser.py
+++ b/hatemile/util/css/tinycss/tinycssparser.py
@@ -17,6 +17,7 @@ Module of TinyCSSParser interface.
from urllib.parse import urljoin
impor... | :bug: Avoid errors when css files has import and charset rules | py |
diff --git a/gbdxtools/simpleworkflows.py b/gbdxtools/simpleworkflows.py
index <HASH>..<HASH> 100644
--- a/gbdxtools/simpleworkflows.py
+++ b/gbdxtools/simpleworkflows.py
@@ -247,7 +247,7 @@ class Task(object):
'''
- self.name = __task_type + '_' + str(uuid.uuid4())
+ self.name = __task_type ... | shorten task_name uuid strings to 8 characters | py |
diff --git a/py/selenium/webdriver/common/options.py b/py/selenium/webdriver/common/options.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/common/options.py
+++ b/py/selenium/webdriver/common/options.py
@@ -27,6 +27,7 @@ class BaseOptions(object):
"""
def __init__(self):
+ super(BaseOptio... | Fix abstract method in options class (#<I>) | py |
diff --git a/src/scs_core/particulate/exegesis/isecee/isecee_n2_v001.py b/src/scs_core/particulate/exegesis/isecee/isecee_n2_v001.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/particulate/exegesis/isecee/isecee_n2_v001.py
+++ b/src/scs_core/particulate/exegesis/isecee/isecee_n2_v001.py
@@ -58,7 +58,7 @@ class ISECE... | Changed ISECEEN2v1 elbow from <I>% to <I>% | py |
diff --git a/blockstack/lib/scripts.py b/blockstack/lib/scripts.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/scripts.py
+++ b/blockstack/lib/scripts.py
@@ -123,7 +123,7 @@ def price_name( name, namespace, block_height ):
Calculate the price of a name (without its namespace ID), given the
namespace parame... | minimum name price no longer 1 satoshi | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.