diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/traffic/data/basic/aircraft.py b/traffic/data/basic/aircraft.py
index <HASH>..<HASH> 100644
--- a/traffic/data/basic/aircraft.py
+++ b/traffic/data/basic/aircraft.py
@@ -22,6 +22,27 @@ registration_patterns = list(
)
+def pia_candidate(df: pd.DataFrame) -> pd.DataFrame:
+ """Returns subsets of data... | detect aircraft possibly enrolling the PIA program | py |
diff --git a/pysat/instruments/sw_f107.py b/pysat/instruments/sw_f107.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/sw_f107.py
+++ b/pysat/instruments/sw_f107.py
@@ -163,8 +163,14 @@ def list_files(tag=None, sat_id=None, data_path=None, format_str=None):
# resample file list to provide the same fi... | Update sw_f<I>.py Improved file handling so the most recent f<I> 'all' file is always used. | py |
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -2540,8 +2540,8 @@ class MainWindow(QMainWindow):
self.apply_panes_settings()
self.apply_statusbar_settings()
-
- if CONF.g... | removed not needed `is True` | py |
diff --git a/fritzconnection/lib/fritzhosts.py b/fritzconnection/lib/fritzhosts.py
index <HASH>..<HASH> 100644
--- a/fritzconnection/lib/fritzhosts.py
+++ b/fritzconnection/lib/fritzhosts.py
@@ -133,7 +133,7 @@ class FritzHosts(AbstractLibraryBase):
"""
args = {
'NewMACAddress': mac_addre... | since merging the patch (kind of api-enhancement, therefore not a patch) booleans are allowed as parameters. | py |
diff --git a/py3o/template/main.py b/py3o/template/main.py
index <HASH>..<HASH> 100644
--- a/py3o/template/main.py
+++ b/py3o/template/main.py
@@ -266,16 +266,18 @@ class Template(object):
to be ready for Genshi replacement
"""
# OLD open office version
- if not link.text is None:
+ ... | Link text may contain empty space if it is formatted We should not rely on not formatted xml for checking if the link url is in the text or in a sub element. | py |
diff --git a/pyout.py b/pyout.py
index <HASH>..<HASH> 100644
--- a/pyout.py
+++ b/pyout.py
@@ -30,7 +30,7 @@ class Tabular(object):
style : dict, optional
Each top-level key should be a column name and the value
should be a style dict that overrides the `default_style`
- class attribute.
+... | DOC: Add an "Examples" section to Tabular's docstring | py |
diff --git a/tests/test_xsd_builtins.py b/tests/test_xsd_builtins.py
index <HASH>..<HASH> 100644
--- a/tests/test_xsd_builtins.py
+++ b/tests/test_xsd_builtins.py
@@ -286,6 +286,9 @@ class TestXDecimal:
(decimal.Decimal("-0.1"), "-0.1"),
(decimal.Decimal("0." + "0123456789" * 9), "0." + "0123456789" ... | test XSD Decimal type string representation for value zero with a negative exp | py |
diff --git a/tensor2tensor/models/research/glow_ops.py b/tensor2tensor/models/research/glow_ops.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/models/research/glow_ops.py
+++ b/tensor2tensor/models/research/glow_ops.py
@@ -276,7 +276,10 @@ def invertible_1x1_conv(name, x, reverse=False):
u = u * np.transpose(l... | Cast scaling factors to the same type as the log determinant in invertible_1x1_conv. PiperOrigin-RevId: <I> | py |
diff --git a/mailqueue/models.py b/mailqueue/models.py
index <HASH>..<HASH> 100644
--- a/mailqueue/models.py
+++ b/mailqueue/models.py
@@ -134,6 +134,9 @@ class Attachment(models.Model):
def __str__(self):
return self.file_attachment.name
+ def file_attachment.url(self)
+ return None
+
@rec... | quick hack to remove not working url | py |
diff --git a/mappet/mappet.py b/mappet/mappet.py
index <HASH>..<HASH> 100644
--- a/mappet/mappet.py
+++ b/mappet/mappet.py
@@ -295,8 +295,7 @@ class Mappet(Node):
def __dir__(self):
u"""Returns a list of children and available helper methods."""
- children = set(self._get_aliases().keys())
- ... | Use keys() when returning ad list of children | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ except (IOError, ImportError, RuntimeError):
# long_description = file.read()
setup(name='loqusdb',
- version='0.2',
+ version='0.3',
description='Store frequencies of vcf variants in a mongod... | Bumps version to <I> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,6 +14,7 @@
import sys
import os
+import pkg_resources
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is re... | Try to teach sphinx to auto update to the recent version | py |
diff --git a/remoto/util.py b/remoto/util.py
index <HASH>..<HASH> 100644
--- a/remoto/util.py
+++ b/remoto/util.py
@@ -20,6 +20,7 @@ class RemoteError(object):
def __init__(self, traceback):
self.orig_traceback = traceback
+ self.exception_line = ''
self.exception_name = self.get_excepti... | save the right traceback line for the error | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,8 @@
from distutils.core import setup
-setup(name='ReverseProxyShim',
- version='1.1',
+setup(name='ProxyMiddleware',
+ version='1.2',
description='A collection of usefull middleware for reverse pro... | Update setup.py Changed name to ProxyMiddleware | py |
diff --git a/backtrader/feed.py b/backtrader/feed.py
index <HASH>..<HASH> 100644
--- a/backtrader/feed.py
+++ b/backtrader/feed.py
@@ -212,8 +212,9 @@ class AbstractDataBase(with_metaclass(MetaAbstractDataBase,
def put_notification(self, status, *args, **kwargs):
'''Add arguments to notification queue''... | Publish only chaning data notifications | py |
diff --git a/sacred/observers/mongo.py b/sacred/observers/mongo.py
index <HASH>..<HASH> 100644
--- a/sacred/observers/mongo.py
+++ b/sacred/observers/mongo.py
@@ -130,7 +130,7 @@ class MongoObserver(RunObserver):
def completed_event(self, stop_time, result):
self.run_entry['stop_time'] = stop_time
- ... | Added flattening for results (to handle returned numpy arrays) | py |
diff --git a/dbbackup/management/commands/mediabackup.py b/dbbackup/management/commands/mediabackup.py
index <HASH>..<HASH> 100644
--- a/dbbackup/management/commands/mediabackup.py
+++ b/dbbackup/management/commands/mediabackup.py
@@ -137,7 +137,7 @@ class Command(BaseCommand):
if server_name:
ser... | Media backup file name RE fix for numbered files | py |
diff --git a/docker/tls.py b/docker/tls.py
index <HASH>..<HASH> 100644
--- a/docker/tls.py
+++ b/docker/tls.py
@@ -1,4 +1,5 @@
import os
+import ssl
from . import errors
from .ssladapter import ssladapter
@@ -19,10 +20,14 @@ class TLSConfig(object):
# here, but also disable any public/default CA pool veri... | Use protocol TLS <I> by default when none is set. | py |
diff --git a/planet/specs.py b/planet/specs.py
index <HASH>..<HASH> 100644
--- a/planet/specs.py
+++ b/planet/specs.py
@@ -108,7 +108,8 @@ def get_product_bundles():
def get_item_types(product_bundle=None):
- '''If given product bundle, get specific item types supported by Orders API. Otherwise, get all item ty... | Improved docs linting. | py |
diff --git a/datatableview/datatables.py b/datatableview/datatables.py
index <HASH>..<HASH> 100644
--- a/datatableview/datatables.py
+++ b/datatableview/datatables.py
@@ -417,6 +417,10 @@ class Datatable(six.with_metaclass(DatatableMetaclass)):
return {}
+ def get_object_pk(self, obj):
+ """ Retu... | Delegate object pk retrieval to method This will be important for a ValuesDatatable to supply its own strategy for retrieving that value | py |
diff --git a/proselint/__init__.py b/proselint/__init__.py
index <HASH>..<HASH> 100644
--- a/proselint/__init__.py
+++ b/proselint/__init__.py
@@ -1,4 +1,4 @@
"""Proselint applies advice from great writers to your writing."""
from . import tools
-__all__ = ['tools']
+__all__ = ('tools') | Make __all__ immutable to stop pep<I> from complaining. | py |
diff --git a/playhouse/tests/test_postgres.py b/playhouse/tests/test_postgres.py
index <HASH>..<HASH> 100644
--- a/playhouse/tests/test_postgres.py
+++ b/playhouse/tests/test_postgres.py
@@ -17,7 +17,7 @@ from playhouse.tests.base import database_initializer
from playhouse.tests.base import ModelTestCase
from playhou... | Fix a bug where running all tests with sqlite (while postgres is installed and available), would cause failures while creating the fixture models, as the TestingID model was pointing at a non-existant SQLite database. | py |
diff --git a/satpy/readers/ahi_grid.py b/satpy/readers/ahi_grid.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/ahi_grid.py
+++ b/satpy/readers/ahi_grid.py
@@ -116,7 +116,7 @@ class AHIGriddedFileHandler(BaseFileHandler):
def __del__(self):
"""Delete the object."""
- if (self._unzipped and os.... | Minor updates to gridded AHI reader. | py |
diff --git a/holoviews/core/spaces.py b/holoviews/core/spaces.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/spaces.py
+++ b/holoviews/core/spaces.py
@@ -117,8 +117,8 @@ class HoloMap(UniformNdMapping, Overlayable):
# Combine streams
map_obj = self if isinstance(self, DynamicMap) else other
... | Fixed bug in _dynamic_mul | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ setup(
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
],
- install_requires=[
+ requires=[
'typing',
'requests>=2.18,<3',
]... | Change install_requires to requires | py |
diff --git a/csvdiff/__init__.py b/csvdiff/__init__.py
index <HASH>..<HASH> 100755
--- a/csvdiff/__init__.py
+++ b/csvdiff/__init__.py
@@ -190,7 +190,7 @@ def _summarize_diff(diff, orig_size, stream=sys.stdout):
n_changed, 100 * n_changed / orig_size
), file=stream)
else:
- print('file... | Add missing unicode marker in last fix. | py |
diff --git a/tools/profiling/bloat/bloat_diff.py b/tools/profiling/bloat/bloat_diff.py
index <HASH>..<HASH> 100755
--- a/tools/profiling/bloat/bloat_diff.py
+++ b/tools/profiling/bloat/bloat_diff.py
@@ -59,6 +59,21 @@ def _build(output_dir):
subprocess.check_call('make -j%d' % args.jobs, shell=True, cwd=output_dir... | Tweak bloat thresholds (#<I>) | py |
diff --git a/esptool.py b/esptool.py
index <HASH>..<HASH> 100755
--- a/esptool.py
+++ b/esptool.py
@@ -123,13 +123,13 @@ class ESPROM:
""" Try connecting repeatedly until successful, or giving up """
def connect(self):
print 'Connecting...'
- self._port.timeout = 0.2
+ self._port.timeou... | Make timeouts more conservative. Otherwise, some modules fail with Exception('Invalid head of packet'). | py |
diff --git a/apitools/base/py/util.py b/apitools/base/py/util.py
index <HASH>..<HASH> 100644
--- a/apitools/base/py/util.py
+++ b/apitools/base/py/util.py
@@ -63,7 +63,8 @@ def DetectGce():
"""
try:
o = urllib_request.build_opener(urllib_request.ProxyHandler({})).open(
- urllib_request.Req... | Add the Metadata-Flavor header for GCE detection. (#<I>) This is required for GCE detection: newer versions of the metadata service will reject requests without this header, meaning that GCE detection will fail. | py |
diff --git a/sovrin_client/client/wallet/wallet.py b/sovrin_client/client/wallet/wallet.py
index <HASH>..<HASH> 100644
--- a/sovrin_client/client/wallet/wallet.py
+++ b/sovrin_client/client/wallet/wallet.py
@@ -68,6 +68,10 @@ class Wallet(PWallet, TrustAnchoring):
:param raw: the wallet's raw representation of... | INDY-<I>: Added a comment | py |
diff --git a/redis/exceptions.py b/redis/exceptions.py
index <HASH>..<HASH> 100644
--- a/redis/exceptions.py
+++ b/redis/exceptions.py
@@ -17,7 +17,7 @@ class ConnectionError(ServerError):
pass
-class BusyLoadingError(ServerError):
+class BusyLoadingError(ConnectionError):
pass | BusyLoadingError should inherit ConnectionError. | py |
diff --git a/src/vivarium/framework/population.py b/src/vivarium/framework/population.py
index <HASH>..<HASH> 100644
--- a/src/vivarium/framework/population.py
+++ b/src/vivarium/framework/population.py
@@ -121,7 +121,7 @@ class PopulationView:
because the component itself has not created them.
"""
... | Fix set logic in population subview column handling | py |
diff --git a/glances/glances.py b/glances/glances.py
index <HASH>..<HASH> 100644
--- a/glances/glances.py
+++ b/glances/glances.py
@@ -1321,10 +1321,14 @@ class GlancesGrabProcesses:
continue
# Update processcount (global statistics)
try:
- self.... | Correct a regression with client/server for PsUtil 1/2 | py |
diff --git a/zinnia/tests/managers.py b/zinnia/tests/managers.py
index <HASH>..<HASH> 100644
--- a/zinnia/tests/managers.py
+++ b/zinnia/tests/managers.py
@@ -131,6 +131,7 @@ class ManagersTestCase(TestCase):
self.assertEquals(Entry.published.advanced_search('content 1 and 2').count(), 0)
self.assertE... | adding little test for ensuring behavior of advanced search engine | py |
diff --git a/denonavr/denonavr.py b/denonavr/denonavr.py
index <HASH>..<HASH> 100644
--- a/denonavr/denonavr.py
+++ b/denonavr/denonavr.py
@@ -45,7 +45,7 @@ SOUND_MODE_MAPPING = OrderedDict(
('VIRTUAL', ['VIRTUAL']),
('PURE DIRECT', ['DIRECT']),
('DOLBY DIGITAL', ['DOLBY DIGITAL', 'DOLBY D + DOLBY SUR... | Add 'Dolby Surround' to sound mode mapping | py |
diff --git a/vagrant/test.py b/vagrant/test.py
index <HASH>..<HASH> 100644
--- a/vagrant/test.py
+++ b/vagrant/test.py
@@ -74,10 +74,8 @@ class VagrantTestCase(TestCase):
def setUpOnce(self):
"""Collect the box states before starting"""
for box_name in self.vagrant_boxes:
- box_state =... | test: fix setUpOnce (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,7 @@ setup(
name='losant-rest',
version='1.8.7',
description='A REST client for the Losant API',
+ long_description_content_type='text/markdown',
long_description=long_description,
url='ht... | have to say readme is markdown | py |
diff --git a/src/Exscript/protocols/Protocol.py b/src/Exscript/protocols/Protocol.py
index <HASH>..<HASH> 100644
--- a/src/Exscript/protocols/Protocol.py
+++ b/src/Exscript/protocols/Protocol.py
@@ -966,7 +966,7 @@ class Protocol(object):
self._dbg(5, "Checking %s for errors" % repr(self.response))
fo... | Exscript.protocols: fix: error detection only worked at beginning of a line. | py |
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py
index <HASH>..<HASH> 100755
--- a/misc/log-analytics/import_logs.py
+++ b/misc/log-analytics/import_logs.py
@@ -763,6 +763,7 @@ class Piwik(object):
elif not isinstance(data, basestring) and headers['Content-type'] == 'applicati... | Fixes #<I> thanks for the patch | py |
diff --git a/api/src/opentrons/drivers/rpi_drivers/gpio.py b/api/src/opentrons/drivers/rpi_drivers/gpio.py
index <HASH>..<HASH> 100755
--- a/api/src/opentrons/drivers/rpi_drivers/gpio.py
+++ b/api/src/opentrons/drivers/rpi_drivers/gpio.py
@@ -123,6 +123,7 @@ class GPIOCharDev:
async def setup(self):
MOD... | fix(api): Enable audio on GPIO startup (#<I>) The GPIO pin that allows the Pi to output audio was automatically enabled prior to <URL> | py |
diff --git a/holidays/countries/venezuela.py b/holidays/countries/venezuela.py
index <HASH>..<HASH> 100644
--- a/holidays/countries/venezuela.py
+++ b/holidays/countries/venezuela.py
@@ -54,7 +54,9 @@ class Venezuela(HolidayBase):
self[date(year, JUL, 24)] = "Natalicio de Simón Bolívar"
self[date(ye... | Updated venezuela.py I added "Muerte del Libertador Simón Bolívar", which was missing, though, some people say its not a true holiday, but it is in my experience | py |
diff --git a/anycast_healthchecker/healthchecker.py b/anycast_healthchecker/healthchecker.py
index <HASH>..<HASH> 100644
--- a/anycast_healthchecker/healthchecker.py
+++ b/anycast_healthchecker/healthchecker.py
@@ -139,7 +139,7 @@ class HealthChecker(object):
# except the last one. A single element arr... | Fix a regression introduced by <I>aa<I>b<I> In <I>aa<I>b<I>e we simplified the way we write IP prefixes in the bird configuration by using a lambda to generate the list and join them with comma and new-line character. But, the last element never got the newline character and as a result a subsequent parsing of the bir... | py |
diff --git a/shttpfs/do_request.py b/shttpfs/do_request.py
index <HASH>..<HASH> 100644
--- a/shttpfs/do_request.py
+++ b/shttpfs/do_request.py
@@ -32,10 +32,10 @@ class do_request:
return (result.read(), result.info())
def writer(path):
- with open(d[path], 'w') as f:
+ wit... | fixed another bad variable name in refactored pull code | py |
diff --git a/src/openaccess_epub/opf/opf.py b/src/openaccess_epub/opf/opf.py
index <HASH>..<HASH> 100644
--- a/src/openaccess_epub/opf/opf.py
+++ b/src/openaccess_epub/opf/opf.py
@@ -58,7 +58,6 @@ class OPF(object):
The OPF Class relies on a concept of internal state. This state represents
the class' focus on... | ammending typo in docstring | py |
diff --git a/sysconfig.py b/sysconfig.py
index <HASH>..<HASH> 100644
--- a/sysconfig.py
+++ b/sysconfig.py
@@ -418,7 +418,11 @@ _config_vars = None
def _init_posix():
"""Initialize the module as appropriate for POSIX systems."""
# _sysconfigdata is generated at build time, see the sysconfig module
- name ... | Issue #<I>: Fix distutils Why do we have two sysconfig modules again? | py |
diff --git a/src/docs/conf.py b/src/docs/conf.py
index <HASH>..<HASH> 100644
--- a/src/docs/conf.py
+++ b/src/docs/conf.py
@@ -316,5 +316,5 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return Mock()
-MOCK_MODULES = ['numpy', 'cython', 'sympy', 'matplotlib', 'yaml', 'assimulo', 'sbml']
+MOCK... | removed yaml fromm mocks | py |
diff --git a/precise/__init__.py b/precise/__init__.py
index <HASH>..<HASH> 100644
--- a/precise/__init__.py
+++ b/precise/__init__.py
@@ -1 +1 @@
-__version__ = '0.1.1'
+__version__ = '0.2.0' | Increment version to <I> | py |
diff --git a/pytds/dbapi.py b/pytds/dbapi.py
index <HASH>..<HASH> 100644
--- a/pytds/dbapi.py
+++ b/pytds/dbapi.py
@@ -195,17 +195,6 @@ class _Connection(object):
self._conn.close()
self._conn = None
- def select_db(self, dbname):
- """
- select_db(dbname) -- Select the curr... | removed select_db method, not pep compilant and not very useful | py |
diff --git a/src/ocrmypdf/_sync.py b/src/ocrmypdf/_sync.py
index <HASH>..<HASH> 100644
--- a/src/ocrmypdf/_sync.py
+++ b/src/ocrmypdf/_sync.py
@@ -344,7 +344,7 @@ def configure_debug_logging(log_filename, prefix=''):
)
log_file_handler.setFormatter(formatter)
logging.getLogger(prefix).addHandler(log_file... | Don't use debug.log in pytest pytest does not reset the state of logging if we install a file handler, which will cause FileNotFoundError after the temporary folder is removed. Semi-related: <URL> | py |
diff --git a/toolium/pageelements/input_text_page_element.py b/toolium/pageelements/input_text_page_element.py
index <HASH>..<HASH> 100644
--- a/toolium/pageelements/input_text_page_element.py
+++ b/toolium/pageelements/input_text_page_element.py
@@ -26,7 +26,7 @@ class InputText(PageElement):
:returns: elem... | NOV-<I> InputText with webview mode getting the text value (#<I>) | py |
diff --git a/fault/file.py b/fault/file.py
index <HASH>..<HASH> 100644
--- a/fault/file.py
+++ b/fault/file.py
@@ -8,7 +8,10 @@ class File:
self.tester = tester
self.mode = mode
self.chunk_size = chunk_size
- self.name_without_ext = os.path.splitext(self.name)[0]
+ basename = os... | fix filename with abs path or dots | py |
diff --git a/flake8_respect_noqa.py b/flake8_respect_noqa.py
index <HASH>..<HASH> 100644
--- a/flake8_respect_noqa.py
+++ b/flake8_respect_noqa.py
@@ -4,13 +4,17 @@ Always ignore lines with '# noqa'
"""
__version__ = 0.2
-import pep8
+try:
+ from pep8 import StandardReport, noqa
+except ImportError:
+ # Try t... | Adjust for pep8 package rename. Closes #1 | py |
diff --git a/alot/completion.py b/alot/completion.py
index <HASH>..<HASH> 100644
--- a/alot/completion.py
+++ b/alot/completion.py
@@ -191,8 +191,22 @@ class TagsCompleter(StringlistCompleter):
StringlistCompleter.__init__(self, resultlist)
-class ContactsCompleter(Completer):
- """completes contacts"""... | rename ContactsCompleter to AbooksCompleter and make ContactsCompleter a MultipleSelection variant thereof | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -178,7 +178,7 @@ class PyTestCommand(test):
setup(
name='openhtf',
- version='1.2.1',
+ version='1.2.2',
description='OpenHTF, the open hardware testing framework.',
author='John Hawley',
author_em... | Update version to <I> (#<I>) Updating version to include two fixes by jettinsonjoe: - #<I> - #<I> | py |
diff --git a/test/tests.py b/test/tests.py
index <HASH>..<HASH> 100644
--- a/test/tests.py
+++ b/test/tests.py
@@ -50,4 +50,4 @@ class TestSubRecord(RevertDefinitionsTest):
class TestBaseRecordNotInStore(TestCase):
def test(self):
- self.assertNotIn(Record, pyschema.core.auto_store)
+ self.assertT... | Made unit test python<I>-compatible by replacing assertNotIn | py |
diff --git a/feedfinder2.py b/feedfinder2.py
index <HASH>..<HASH> 100644
--- a/feedfinder2.py
+++ b/feedfinder2.py
@@ -129,6 +129,8 @@ def find_feeds(url, check_all=False, user_agent=None):
def url_feed_prob(url):
if "comments" in url:
+ return -2
+ if "georss" in url:
return -1
kw = ["a... | georss is with lower priority than other feeds, but higher than comments | py |
diff --git a/peewee.py b/peewee.py
index <HASH>..<HASH> 100644
--- a/peewee.py
+++ b/peewee.py
@@ -898,22 +898,15 @@ class SelectQuery(BaseQuery):
self._offset = num_rows
def count(self):
- tmp_lim, tmp_off = self._limit, self._offset
- self._limit = self._offset = None
+ clone ... | Remove any ordering when doing a simple count | py |
diff --git a/anoncreds/protocol/utils.py b/anoncreds/protocol/utils.py
index <HASH>..<HASH> 100644
--- a/anoncreds/protocol/utils.py
+++ b/anoncreds/protocol/utils.py
@@ -43,8 +43,7 @@ def get_prime_in_range(start, end):
while n < maxIter:
r = randint(start, end)
if cmod.isPrime(r):
- ... | removed some logging that exposed secret keys | py |
diff --git a/services/managers/smf_manager.py b/services/managers/smf_manager.py
index <HASH>..<HASH> 100644
--- a/services/managers/smf_manager.py
+++ b/services/managers/smf_manager.py
@@ -49,6 +49,7 @@ class smfManager:
@staticmethod
def santatize_username(username):
sanatized = username.replace... | sanitize apostrophes in username closes #<I> | py |
diff --git a/numina/logger.py b/numina/logger.py
index <HASH>..<HASH> 100644
--- a/numina/logger.py
+++ b/numina/logger.py
@@ -36,12 +36,12 @@ class FITSHistoryHandler(logging.Handler):
msg = self.format(record)
self.header.add_history(msg)
-def log_to_history(logger):
+def log_to_history(logger, na... | Pass to log2history the name of the field in the result to store the log | py |
diff --git a/bonobo/nodes/io/csv.py b/bonobo/nodes/io/csv.py
index <HASH>..<HASH> 100644
--- a/bonobo/nodes/io/csv.py
+++ b/bonobo/nodes/io/csv.py
@@ -1,4 +1,5 @@
import csv
+import warnings
from bonobo.config import Option
from bonobo.config.options import RemovedOption
@@ -62,7 +63,7 @@ class CsvReader(FileReade... | Less strict CSV processing, to allow dirty input. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,13 +24,13 @@
#
# --------------------------------------------------------------------------
-from setuptools import setup
+from setuptools import setup, find_packages
setup(
name='msrest',
version='0.4.25'... | Fixing setup.py for <I> | py |
diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_pkg.py
+++ b/salt/modules/win_pkg.py
@@ -221,7 +221,7 @@ def list_pkgs(*args, **kwargs):
__salt__['pkg_resource.add_pkg'](ret, key, val)
__salt__['pkg_resource.sort_pkglist'](ret... | do a deep copy of ret. Don't alter original | py |
diff --git a/astromodels/core/parameter.py b/astromodels/core/parameter.py
index <HASH>..<HASH> 100644
--- a/astromodels/core/parameter.py
+++ b/astromodels/core/parameter.py
@@ -638,6 +638,11 @@ class ParameterBase(Node):
min_value, max_value = bounds
+ # Remove old boundaries to avoid problems wit... | Fixing a corner case where both boundaries are changed so that the current value is not within them | py |
diff --git a/test/test_autopep8.py b/test/test_autopep8.py
index <HASH>..<HASH> 100644
--- a/test/test_autopep8.py
+++ b/test/test_autopep8.py
@@ -51,5 +51,17 @@ class TestFixPEP8Error(unittest.TestCase):
self._inner_setup(line)
self.assertEqual(self.result, fixed)
+ def test_w291(self):
+ ... | Add unit tests for fix_w<I>() | py |
diff --git a/currencies/management/commands/_yahoofinance.py b/currencies/management/commands/_yahoofinance.py
index <HASH>..<HASH> 100644
--- a/currencies/management/commands/_yahoofinance.py
+++ b/currencies/management/commands/_yahoofinance.py
@@ -78,7 +78,7 @@ class CurrencyHandler(BaseHandler):
if mat... | Unicode issue resolved. When running ./manage.py currencies yahoo --import='USD' Throws this error UnicodeEncodeError: 'ascii' codec can't encode character u'\u<I>ac' in position <I>: ordinal not in range(<I>) So to write to json file, set encoding type to utf-8 | py |
diff --git a/pyqode/core/api/code_edit.py b/pyqode/core/api/code_edit.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/api/code_edit.py
+++ b/pyqode/core/api/code_edit.py
@@ -907,10 +907,12 @@ class CodeEdit(QtWidgets.QPlainTextEdit):
self.key_pressed.emit(event)
state = event.isAccepted()
if... | Prevent indent/unindent if there are keyboard modifiers. Ctrl+Tab & Ctrl+Shift+Tab can now be used to cycle though the tabs of the parent QTabWidget. | py |
diff --git a/msshcopyid/__init__.py b/msshcopyid/__init__.py
index <HASH>..<HASH> 100644
--- a/msshcopyid/__init__.py
+++ b/msshcopyid/__init__.py
@@ -289,3 +289,6 @@ class Host(object):
self.port = port
self.user = user
self.password = password
+
+ def __repr__(self):
+ return '<{0... | Add a nice print for the Host object resolve #<I> | py |
diff --git a/eventsourcing/system.py b/eventsourcing/system.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/system.py
+++ b/eventsourcing/system.py
@@ -509,7 +509,7 @@ class MultiThreadedRunner(Runner):
self.stop()
def stop(self) -> None:
- self.stop_called.set()
+ self.apps.clear()
... | Changed multi-threaded runner stop() method to clear apps dict (like single-threaded runner does). | py |
diff --git a/ReText/window.py b/ReText/window.py
index <HASH>..<HASH> 100644
--- a/ReText/window.py
+++ b/ReText/window.py
@@ -458,15 +458,14 @@ class ReTextWindow(QMainWindow):
cursor.beginEditBlock()
while block != end:
cursor.setPosition(block.position())
- if self.tabInsertsSpaces:
+ if editBox.docume... | editBoxIndentLess: correctly de-dent both tabulated and "spaced" text | py |
diff --git a/refcycle/gc_analyze.py b/refcycle/gc_analyze.py
index <HASH>..<HASH> 100755
--- a/refcycle/gc_analyze.py
+++ b/refcycle/gc_analyze.py
@@ -267,7 +267,7 @@ digraph G {{
vertex_labels = {vertex: vertex for vertex in self.vertices}
edges = [
- edge_template.format(start=self.... | Fix reversed edges in DOT output. | py |
diff --git a/salt/states/boto_elb.py b/salt/states/boto_elb.py
index <HASH>..<HASH> 100644
--- a/salt/states/boto_elb.py
+++ b/salt/states/boto_elb.py
@@ -653,6 +653,7 @@ def _elb_present(
return ret
subnets.append(r['id'])
+ _security_groups = None
if subnets:
vpc_id = ... | INFRA-<I> - duh, fix stupid bug I introduced | py |
diff --git a/properties/basic.py b/properties/basic.py
index <HASH>..<HASH> 100644
--- a/properties/basic.py
+++ b/properties/basic.py
@@ -353,7 +353,11 @@ class GettableProperty(with_metaclass(ArgumentWrangler, object)): #
def sphinx_class(self):
"""Property class name formatted for Sphinx d... | Allow different class prefixes in the docs for Property subclasses | py |
diff --git a/aiida_codtools/cli/workflows/cif_clean.py b/aiida_codtools/cli/workflows/cif_clean.py
index <HASH>..<HASH> 100644
--- a/aiida_codtools/cli/workflows/cif_clean.py
+++ b/aiida_codtools/cli/workflows/cif_clean.py
@@ -82,7 +82,7 @@ def launch(cif_filter, cif_select, group_cif_raw, group_cif_clean, group_struct... | Sort the cif data nodes in the `cif_clean` launch script | py |
diff --git a/relib/utils.py b/relib/utils.py
index <HASH>..<HASH> 100644
--- a/relib/utils.py
+++ b/relib/utils.py
@@ -5,15 +5,16 @@ def get_tmp_path():
file_name = str(random())[2:]
return '/tmp/' + file_name
-def pickle_keras_model(model):
- tmp_path = get_tmp_path()
- model.save(tmp_path)
- with open(tmp_... | added PickleableKerasModel | py |
diff --git a/optimer/views.py b/optimer/views.py
index <HASH>..<HASH> 100644
--- a/optimer/views.py
+++ b/optimer/views.py
@@ -119,6 +119,6 @@ def edit_optimer(request, optimer_id):
'operation_name': op.operation_name,
'fc': op.fc,
'details': op.details,
- }
+ }
... | Unindented the indent | py |
diff --git a/test_elasticsearch/test_server/test_common.py b/test_elasticsearch/test_server/test_common.py
index <HASH>..<HASH> 100644
--- a/test_elasticsearch/test_server/test_common.py
+++ b/test_elasticsearch/test_server/test_common.py
@@ -61,9 +61,11 @@ class YamlTestCase(TestCase):
def _lookup(self, path):
... | Enable \. in yaml lookups | py |
diff --git a/tests/comparator_py2.py b/tests/comparator_py2.py
index <HASH>..<HASH> 100644
--- a/tests/comparator_py2.py
+++ b/tests/comparator_py2.py
@@ -1,5 +1,6 @@
import unittest
+import sys
from chai.comparators import *
@@ -7,6 +8,8 @@ class ComparatorsPy2Test(unittest.TestCase):
# because this code ... | Skip py2 only test on py3 When running the tests with python3 setup.py test all the tests nose can find are run. This commit prevents that the py2-only test is run on py3 Relates to <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,8 @@ NAME = "knowledge_base"
exec(open('{0}/__version__.py'.format(NAME)).read())
VERSION = str_version
+# TODO: update for python3
+
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname... | updated setup.py for py3 (see issue #3) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -72,6 +72,10 @@ setup(
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2.6'
+ 'Programming Lan... | Add supported Python versions to classifiers | py |
diff --git a/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py b/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py
index <HASH>..<HASH> 100644
--- a/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py
+++ b/bootstrap_admin/templatetags/bootstrap_admin_template_tags.py
@@ -62,7 +62,7 @@... | Now Sidebar Menu is enabled by default \o/. | py |
diff --git a/thefuck/specific/archlinux.py b/thefuck/specific/archlinux.py
index <HASH>..<HASH> 100644
--- a/thefuck/specific/archlinux.py
+++ b/thefuck/specific/archlinux.py
@@ -24,8 +24,11 @@ def get_pkgfile(command):
).splitlines()
return [package.split()[0] for package in packages]
- except s... | Now only return [] when correct error was caught | py |
diff --git a/openfisca_core/datatables.py b/openfisca_core/datatables.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/datatables.py
+++ b/openfisca_core/datatables.py
@@ -89,7 +89,14 @@ class DataTable(object):
def load_data_from_test_case(self, test_case):
self.test_case = test_case
- test_c... | Dirty hack to avoid exceptions when nmen is 1. | py |
diff --git a/dustmaps/bayestar.py b/dustmaps/bayestar.py
index <HASH>..<HASH> 100644
--- a/dustmaps/bayestar.py
+++ b/dustmaps/bayestar.py
@@ -618,7 +618,7 @@ def fetch(version='bayestar2019'):
requirements = {
'bayestar2015': {'contentType': 'application/x-hdf'},
- 'bayestar2017': {'filename': '... | Fixed Bayestar<I> fetcher. | py |
diff --git a/scot/ooapi.py b/scot/ooapi.py
index <HASH>..<HASH> 100644
--- a/scot/ooapi.py
+++ b/scot/ooapi.py
@@ -15,7 +15,7 @@ example usage of the low-level API.
import numpy as np
-from . import backend
+from . import backend as global_backend
from .varica import mvarica, cspvarica
from .plainica import plai... | cleaned up backend assignment in Workspace | py |
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/base.py
+++ b/pylint/checkers/base.py
@@ -137,6 +137,10 @@ TYPE_QNAME = "%s.type" % BUILTINS
PY33 = sys.version_info >= (3, 3)
PY3K = sys.version_info >= (3, 0)
PY35 = sys.version_info >= (3, 5)
+ABC_META... | abstract-class-instantiated accounts for _py_abc.ABCMeta for Python <I> | py |
diff --git a/tests/integration/pypyr/utils/filesystem_int_test.py b/tests/integration/pypyr/utils/filesystem_int_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration/pypyr/utils/filesystem_int_test.py
+++ b/tests/integration/pypyr/utils/filesystem_int_test.py
@@ -45,13 +45,18 @@ def temp_file_creator(temp_dir):
... | fs integration test py<I> compat filesystem integration test clean-up uses Pathlib.Path().unlink(missing_ok=True). The missing_ok arg was only introduced in py <I> Revert to using try/catch on FileNotFoundException until pypyr min supported py version is py<I>. | py |
diff --git a/pwnypack/codec.py b/pwnypack/codec.py
index <HASH>..<HASH> 100644
--- a/pwnypack/codec.py
+++ b/pwnypack/codec.py
@@ -169,10 +169,10 @@ def frequency_app(parser, cmd, args):
parser.add_argument('value', help='the value to analyse, read from stdin if omitted', nargs='?')
args = parser.parse_args... | Fix frequency app on python2. | py |
diff --git a/pyhdb/protocol/parts.py b/pyhdb/protocol/parts.py
index <HASH>..<HASH> 100644
--- a/pyhdb/protocol/parts.py
+++ b/pyhdb/protocol/parts.py
@@ -109,9 +109,11 @@ class OptionPart(with_metaclass(OptionPartMeta, Part)):
options = {}
for i in iter_range(argument_count):
key, typ = ... | Fixed a bug in OptionPart.unpack_data where unknown keys would mess up the parsing process | py |
diff --git a/src/justbases/version.py b/src/justbases/version.py
index <HASH>..<HASH> 100644
--- a/src/justbases/version.py
+++ b/src/justbases/version.py
@@ -26,5 +26,5 @@
.. moduleauthor:: mulhern <amulhern@redhat.com>
"""
-__version__ = '0.3'
+__version__ = '0.4'
__version_info__ = tuple(int(x) for x in _... | New version: <I>. | py |
diff --git a/src/collectors/docker_collector/docker_collector.py b/src/collectors/docker_collector/docker_collector.py
index <HASH>..<HASH> 100644
--- a/src/collectors/docker_collector/docker_collector.py
+++ b/src/collectors/docker_collector/docker_collector.py
@@ -17,7 +17,8 @@ try:
import docker
except ImportE... | docker_collector.py: support docker python module Make docker collector to work both with docker-py and docker(newer version of docker-py) python modules. | py |
diff --git a/pingouin/contingency.py b/pingouin/contingency.py
index <HASH>..<HASH> 100644
--- a/pingouin/contingency.py
+++ b/pingouin/contingency.py
@@ -34,8 +34,6 @@ def chi2(data, x, y, correction=True):
The expected contingency table of frequencies.
observed : pd.DataFrame
The (corrected or ... | Removed dof from docstring chi2 | py |
diff --git a/code/pywws/conversions.py b/code/pywws/conversions.py
index <HASH>..<HASH> 100755
--- a/code/pywws/conversions.py
+++ b/code/pywws/conversions.py
@@ -89,12 +89,12 @@ def wind_bft(ms):
def cadhumidex(temp, humidity):
"Calculate Humidity Index as per Canadian Weather Standards"
- if (temp is None)... | LiveLog.py Compatibility Fix Python may behave unexpectedly when there are extra spaces around calculations, this function is now compatible by removing spaces from fHumidex | py |
diff --git a/salt/states/mount.py b/salt/states/mount.py
index <HASH>..<HASH> 100644
--- a/salt/states/mount.py
+++ b/salt/states/mount.py
@@ -156,7 +156,7 @@ def mounted(name,
if uuid_device and uuid_device not in device_list:
device_list.append(uuid_device)
if opts:
- ... | Fixes #<I>, this considers nofail as a invisible mount option. This should fix mounts that always remount every run. | py |
diff --git a/contrib/experimental/great_expectations_experimental/expectations/expect_column_values_to_be_valid_geojson.py b/contrib/experimental/great_expectations_experimental/expectations/expect_column_values_to_be_valid_geojson.py
index <HASH>..<HASH> 100644
--- a/contrib/experimental/great_expectations_experimenta... | linting error snuck through (#<I>) | py |
diff --git a/sqlserver_pymssql/base.py b/sqlserver_pymssql/base.py
index <HASH>..<HASH> 100644
--- a/sqlserver_pymssql/base.py
+++ b/sqlserver_pymssql/base.py
@@ -112,6 +112,7 @@ class DatabaseWrapper(_DatabaseWrapper):
'database': settings_dict['NAME'],
'user': settings_dict['USER'],
... | Add port setting from settings_dict to connection_params | py |
diff --git a/django_extensions/management/commands/sqldiff.py b/django_extensions/management/commands/sqldiff.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/sqldiff.py
+++ b/django_extensions/management/commands/sqldiff.py
@@ -310,7 +310,7 @@ class SQLDiff(object):
attname =... | do not count a multi column unique index as a unique index for a single column | py |
diff --git a/flowcraft/templates/process_viral_assembly.py b/flowcraft/templates/process_viral_assembly.py
index <HASH>..<HASH> 100644
--- a/flowcraft/templates/process_viral_assembly.py
+++ b/flowcraft/templates/process_viral_assembly.py
@@ -136,7 +136,6 @@ class Assembly:
headerStr = header.__next__()[1:... | added report to the process viral_assembly - added info on the number of ORFs and fixed some bugs (print cleanup) | py |
diff --git a/cherrypy/test/test_core.py b/cherrypy/test/test_core.py
index <HASH>..<HASH> 100644
--- a/cherrypy/test/test_core.py
+++ b/cherrypy/test/test_core.py
@@ -756,7 +756,11 @@ class ErrorTests(helper.CPWebCase):
def test_contextmanager(self):
self.getPage('/stat/missing')
self.assertStatu... | Update test to include the error message one might find on Windows. | py |
diff --git a/aws_google_auth/u2f.py b/aws_google_auth/u2f.py
index <HASH>..<HASH> 100644
--- a/aws_google_auth/u2f.py
+++ b/aws_google_auth/u2f.py
@@ -48,7 +48,12 @@ def u2f_auth(challenges, facet):
try:
device.open()
except:
- devices.remove(device)
+ # Some U2F dev... | Retry opening U2F devices, improves reliability Some U2F devices fail to open on the first attempt but open reliably after that. So retry once to minimise the unplug/replug dance. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.